
.counting-page{max-width:1240px;margin:24px auto;padding:0 16px;color:#eaf2ff}.counting-main-card{padding:26px;border-radius:22px;background:linear-gradient(145deg,rgba(8,35,80,.94),rgba(8,19,45,.94));box-shadow:0 18px 60px rgba(0,0,0,.25)}.counting-title-area{text-align:center}.counting-brand-row{display:flex;align-items:center;justify-content:center;gap:14px}.counting-brand-logo{width:58px;height:58px;object-fit:contain}.counting-plan-badge{display:inline-block;padding:6px 14px;border-radius:999px;background:rgba(0,174,255,.18);border:1px solid rgba(103,207,255,.55);font-weight:700}.counting-description{max-width:980px;margin:12px auto 20px;line-height:1.8;color:#d7e7ff}.language-row{display:flex;justify-content:center;gap:10px;align-items:center;margin:16px 0}.language-select,.counting-search-input{padding:10px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.25);background:#10284d;color:#fff}.counting-camera-card{position:relative;min-height:440px;border-radius:18px;overflow:hidden;background:#050b18;border:1px solid rgba(112,201,255,.35)}#countingCameraVideo,#countingCapturedImage{width:100%;height:440px;object-fit:contain;background:#050b18}#countingCapturedImage{display:none}.counting-guide{position:absolute;inset:9%;border:2px dashed rgba(91,230,255,.75);border-radius:18px;pointer-events:none}.counting-floating-hint{position:absolute;left:14px;right:14px;bottom:14px;padding:10px 14px;border-radius:12px;background:rgba(0,0,0,.65);text-align:center}.counting-media-buttons,.counting-action-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:16px}.counting-glass-btn{padding:11px 18px;border-radius:12px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.09);color:#fff;cursor:pointer}.counting-primary-btn{background:linear-gradient(135deg,#087bea,#00b8d9)}.counting-recognized-info{display:none;position:absolute;inset:18px;overflow:auto;padding:16px;border-radius:14px;background:rgba(3,14,31,.9)}.counting-recognized-info.show{display:block}.counting-scan-overlay{display:none;position:absolute;inset:0;pointer-events:none}.counting-scan-overlay.is-scanning{display:block}.counting-scan-line{position:absolute;left:4%;right:4%;height:3px;background:#23ff9a;box-shadow:0 0 16px #23ff9a;animation:countScan 2s linear infinite}@keyframes countScan{from{top:8%}to{top:92%}}.counting-summary-card,.counting-search-panel,.plan-feature-card{margin-top:18px;padding:18px;border-radius:16px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12)}.plan-feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.plan-feature-card h3{margin-top:0;color:#76d8ff}.counting-search-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.counting-result-list{margin-top:12px}.counting-empty-info{padding:20px;text-align:center}.counting-translate-overlay{position:absolute;inset:0;background:rgba(0,0,0,.7);display:grid;place-items:center}.counting-translate-moving-text{font-size:1.2rem;animation:pulse 1s infinite alternate}@keyframes pulse{to{opacity:.45}}@media(max-width:700px){.counting-main-card{padding:16px}.counting-brand-row{align-items:flex-start}.counting-camera-card,#countingCameraVideo,#countingCapturedImage{min-height:360px;height:360px}}

/* V2 Pro/EE：物品拆分及资料卡 */
.v2-object-list{display:grid;gap:18px;margin-top:14px}.v2-object-card{padding:18px;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:rgba(4,20,45,.58);box-shadow:0 10px 28px rgba(0,0,0,.18)}.v2-object-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.v2-object-heading h4{margin:0 0 4px;font-size:1.2rem}.v2-object-heading span{font-weight:700;color:#8fe7ff}.v2-split-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;margin:10px 0 14px}.v2-split-canvas{display:block;width:100%;height:110px;object-fit:cover;border-radius:12px;border:1px solid rgba(255,255,255,.22);background:#07121f}.v2-object-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px 16px}.v2-fact{padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.06);line-height:1.45}.v2-no-split{opacity:.75}.v2-disclaimer{margin-top:16px;padding:12px;border-radius:12px;background:rgba(255,193,7,.12);font-size:.92rem}

/* =========================================================
   V4.1 手机第二次识别防横向撑宽修复
   ========================================================= */
.counting-page,
.counting-main-card,
.counting-camera-card,
.counting-summary-card,
.counting-search-panel,
.plan-feature-card,
.counting-recognized-info,
#countingSummary,
#countingSavedPic,
#countingRecentResults {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#countingSummary,
#countingSavedPic,
#countingRecentResults,
.counting-summary-card,
.counting-empty-info,
.v2-fact,
.recent-name,
.recent-meta {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

#countingSavedPic strong {
    overflow-wrap: anywhere;
    word-break: break-all;
}

.counting-media-buttons,
.counting-action-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.counting-glass-btn {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

#countingCameraVideo,
#countingCapturedImage,
#countingPhotoCanvas {
    max-width: 100%;
}

@media (max-width: 700px) {
    .counting-page {
        margin: 12px auto;
        padding-left: 10px;
        padding-right: 10px;
        overflow-x: clip;
    }

    .counting-main-card {
        padding: 12px;
        overflow: hidden;
    }

    .counting-camera-card {
        min-height: 340px;
        height: 340px;
    }

    #countingCameraVideo,
    #countingCapturedImage {
        display: block;
        width: 100%;
        height: 340px;
        max-height: 340px;
        object-fit: contain;
    }

    .counting-floating-hint {
        left: 8px;
        right: 8px;
        max-width: calc(100% - 16px);
        overflow-wrap: anywhere;
    }

    .counting-summary-card {
        padding: 14px;
        overflow: hidden;
    }

    .v2-object-card,
    .v2-object-heading,
    .v2-object-facts,
    .v2-split-grid {
        min-width: 0;
        max-width: 100%;
    }
}
