:root {
    /* 主色系 - 精致红 */
    --primary: #e8394b;
    --primary-dark: #c21830;
    --primary-light: #ff6b7a;
    --primary-50: #fef2f4;
    --primary-100: #fde0e4;

    /* 中性色 - 专业灰 */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;

    /* 文字色 */
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* 语义色 */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* 阴影层次 */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* 过渡 */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* 兼容旧变量 */
    --secondary: #f8f9fa;
    --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    background: #f0f0f3;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: #f4f4f7;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 顶部导航 */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    box-shadow: 0 2px 12px rgba(232,57,75,0.3);
}

.header-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.nav-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-btn:hover { background: rgba(255,255,255,0.25); }

/* 右侧占位（与左侧按钮等宽，保持标题居中） */
.nav-placeholder {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* 主内容区 */
.app-main {
    flex: 1;
    padding: 0 0 24px;
}

/* Hero 区域 */
.trace-card {
    position: relative;
    overflow: hidden;
}

.hero-section {
    position: relative;
    padding: 24px 20px 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 90% 20%, rgba(255,255,255,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 90%, rgba(255,255,255,0.06) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hero-info { flex: 1; z-index: 2; }

.product-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.product-name {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
}

.certified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255,255,255,0.22);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

.certified-badge i { color: #55efc4; font-size: 12px; }

.product-slogan {
    color: rgba(255,255,255,0.92);
    font-size: 12px;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.product-sub {
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    letter-spacing: 1.5px;
}

.hero-strawberry {
    width: 120px;
    height: 120px;
    z-index: 2;
    flex-shrink: 0;
    position: relative;
    animation: floatStrawberry 3s ease-in-out infinite;
}

@keyframes floatStrawberry {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.strawberry-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
    box-shadow: 
        0 0 0 4px rgba(255,255,255,0.25),
        0 8px 24px rgba(0,0,0,0.25),
        0 2px 8px rgba(0,0,0,0.15);
    display: block;
}

/* 通用卡片 */
.section-card {
    background: #fff;
    margin: 0 12px 12px;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.title-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
}

.section-count {
    font-size: 12px;
    color: var(--text-muted);
    background: #f5f5f7;
    padding: 3px 10px;
    border-radius: 10px;
}

/* 产品信息 */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.info-label {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.info-label::before {
    content: '';
    width: 3px;
    height: 12px;
    background: var(--primary);
    border-radius: 2px;
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

/* 品质数据 */
.quality-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.quality-item {
    text-align: center;
    padding: 14px 10px;
    border-radius: var(--radius-md);
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
}

.quality-grade {
    background: linear-gradient(145deg, #fff8f8 0%, #ffe8ea 100%);
}

.quality-sugar {
    background: linear-gradient(145deg, #fffaf2 0%, #fff2e0 100%);
}

.quality-maturity {
    background: linear-gradient(145deg, #fff6f2 0%, #ffe8dd 100%);
}

.quality-shape {
    background: linear-gradient(145deg, #f6f8ff 0%, #ecf0ff 100%);
}

.quality-icon {
    width: 28px;
    height: 28px;
    margin: 0 auto 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.quality-grade .quality-icon { background: var(--primary); color: #fff; }
.quality-sugar .quality-icon { background: #fdcb6e; color: #fff; }
.quality-maturity .quality-icon { background: var(--danger); color: #fff; }
.quality-shape .quality-icon { background: #6c84ff; color: #fff; }

.quality-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.quality-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.grade-value {
    color: var(--primary);
    font-size: 18px;
}

.quality-value.stars {
    color: #fdcb6e;
    font-size: 11px;
    letter-spacing: 1px;
}

.quality-tag {
    display: inline-block;
    margin-top: 4px;
    font-size: 10px;
    background: var(--primary);
    color: #fff;
    padding: 1px 6px;
    border-radius: 8px;
}

.quality-extra {
    text-align: center;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e5;
}

.extra-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.extra-item i { color: var(--primary); }

/* 检测认证 */
.cert-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f8f8fb;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.cert-item:active { background: #eef0f5; }

.cert-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cert-check {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
}

.cert-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.cert-status {
    font-size: 12px;
    color: var(--success);
    margin-left: 6px;
}

.cert-action {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, #ffd0d5 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 16px;
    cursor: pointer;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:hover::before {
    background: var(--primary);
}

.timeline-time {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.timeline-content {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 4px;
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.timeline-meta i { margin-right: 3px; }

.timeline-type {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.type-种植 { background: #e8f8f0; color: #00b894; }
.type-采摘 { background: #fff4e6; color: #fdcb6e; }
.type-检测 { background: #e8f0ff; color: #6c84ff; }
.type-质检 { background: #fff0f0; color: #e8394b; }
.type-包装 { background: #f0e8ff; color: #a29bfe; }
.type-物流 { background: #fff8e6; color: #e17055; }
.type-运输 { background: #e6f7ff; color: #00cec9; }
.type-销售 { background: #ffe8f0; color: #fd79a8; }

.timeline-image {
    margin-top: 8px;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: #f0f0f0;
    display: block;
}

/* 物流信息 */
.logistics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.logistics-item {
    text-align: center;
    padding: 12px 6px;
    background: linear-gradient(145deg, #fff 0%, #f5f5fa 100%);
    border-radius: var(--radius-sm);
    border: 1px solid #eee;
}

.logistics-icon {
    width: 34px;
    height: 34px;
    margin: 0 auto 6px;
    background: linear-gradient(135deg, #6c84ff 0%, #4a6cf7 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.logistics-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.logistics-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

/* 底部操作按钮 */
.bottom-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    margin-top: 4px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.action-btn:active { transform: scale(0.96); }

.action-btn i { font-size: 22px; }

.btn-report {
    background: linear-gradient(135deg, #e8394b 0%, #c92a3d 100%);
    box-shadow: 0 4px 14px rgba(232,57,75,0.3);
}

.btn-photo {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    box-shadow: 0 4px 14px rgba(253,203,110,0.3);
}

.btn-service {
    background: linear-gradient(135deg, #6c84ff 0%, #4a6cf7 100%);
    box-shadow: 0 4px 14px rgba(108,132,255,0.3);
}

/* 底部提示 */
.footer-tip {
    text-align: center;
    padding: 20px 16px 16px;
    color: var(--text-muted);
    font-size: 12px;
}

.copyright {
    font-size: 11px;
    margin-top: 4px;
    color: var(--text-light);
}

/* 弹窗 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 360px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.modal-close:hover { color: var(--text-dark); }

.modal-body {
    padding: 16px;
    overflow-y: auto;
}

.detail-row {
    display: flex;
    margin-bottom: 12px;
}

.detail-label {
    width: 70px;
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
    word-break: break-all;
}

.detail-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    background: #f0f0f0;
}

/* 图片弹窗 */
.photo-modal {
    background: rgba(0,0,0,0.9);
    width: 100%;
    max-width: 500px;
    padding: 20px;
    position: relative;
    border-radius: var(--radius-lg);
    animation: modalIn 0.25s ease;
}

.photo-modal .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #fff;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 70vh;
    overflow-y: auto;
}

.photo-item {
    width: 100%;
    border-radius: var(--radius-sm);
    display: block;
}

/* Toast - 商业级升级 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -120%);
    background: var(--gray-900);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-spring), opacity var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    max-width: 90vw;
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }
.toast-icon { font-size: 18px; }

/* 信任徽章 */
.trust-badges {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.trust-badge i { font-size: 12px; }

/* 二维码区域 */
.qr-section {
    position: relative;
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
}

.qr-box {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.qr-box img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    display: block;
}

.qr-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qr-title {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.qr-sub {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
}

/* 时间线筛选标签 */
.filter-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.filter-tabs::-webkit-scrollbar { height: 0; }

.filter-tab {
    padding: 5px 14px;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--text-muted);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}

.filter-tab:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.filter-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(232,57,75,0.3);
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 90;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-spring);
    pointer-events: none;
}

.back-to-top.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.back-to-top:active { transform: scale(0.9); }

/* 骨架屏 */
.skeleton-overlay {
    position: fixed;
    inset: 0;
    background: #f4f4f7;
    z-index: 500;
    overflow: hidden;
    transition: opacity 0.4s;
}

.skeleton-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.skeleton-hero {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.skeleton-card {
    background: #fff;
    margin: 12px;
    border-radius: var(--radius-md);
    padding: 16px;
}

.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, #efefef 25%, #f5f5f5 50%, #efefef 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 10px;
    animation: shimmer 1.5s infinite;
}

.skeleton-line.w-30 { width: 30%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-100 { width: 100%; }

.skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.skeleton-block {
    height: 60px;
    background: linear-gradient(90deg, #efefef 25%, #f5f5f5 50%, #efefef 75%);
    background-size: 200% 100%;
    border-radius: var(--radius-sm);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 卡片入场动画 */
.section-card {
    animation: fadeInUp 0.5s ease both;
}

.section-card:nth-child(2) { animation-delay: 0.05s; }
.section-card:nth-child(3) { animation-delay: 0.1s; }
.section-card:nth-child(4) { animation-delay: 0.15s; }
.section-card:nth-child(5) { animation-delay: 0.2s; }
.section-card:nth-child(6) { animation-delay: 0.25s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 时间线节点脉冲 */
.timeline-item::before {
    animation: nodePulse 2s infinite;
}

@keyframes nodePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232,57,75,0.3); }
    50% { box-shadow: 0 0 0 6px rgba(232,57,75,0); }
}

/* 图片懒加载淡入 */
.timeline-image {
    opacity: 0;
    transition: opacity 0.4s;
}

.timeline-image.loaded {
    opacity: 1;
}

/* 响应式 */
/* 平板端 (768px+) */
@media (min-width: 768px) {
    .app-container { max-width: 700px; }
    .hero-section { padding: 32px 28px 70px; }
    .product-name { font-size: 34px; }
    .hero-strawberry { width: 140px; height: 140px; }
    .quality-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .quality-item { padding: 16px 10px; }
    .quality-value { font-size: 16px; }
    .grade-value { font-size: 20px; }
    .info-grid { gap: 16px; }
    .logistics-grid { gap: 14px; }
    .section-card { padding: 20px; margin: 0 16px 14px; }
    .section-title h2 { font-size: 17px; }
}

/* 桌面端 (1024px+) - 双列布局 */
@media (min-width: 1024px) {
    .app-container { max-width: 920px; }
    .app-header { padding: 14px 24px; }
    .header-title { font-size: 18px; }

    .hero-section { padding: 40px 36px 80px; border-radius: 0 0 28px 28px; }
    .product-name { font-size: 40px; }
    .product-slogan { font-size: 14px; }
    .product-sub { font-size: 13px; }
    .hero-strawberry { width: 170px; height: 170px; }
    .certified-badge { font-size: 13px; padding: 4px 12px; }

    /* 双列布局：产品信息+品质数据 / 检测认证+物流信息 */
    .section-card { margin: 0 16px 14px; padding: 22px; }
    .section-title h2 { font-size: 18px; }
    .title-icon { width: 28px; height: 28px; font-size: 15px; }

    .info-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .info-value { font-size: 15px; }

    .quality-grid { gap: 16px; }
    .quality-item { padding: 18px 12px; }
    .quality-value { font-size: 17px; }
    .grade-value { font-size: 22px; }
    .quality-label { font-size: 12px; }
    .quality-icon { width: 32px; height: 32px; font-size: 15px; }

    .cert-item { padding: 12px 14px; }
    .cert-name { font-size: 15px; }

    .timeline-content { font-size: 14px; }
    .timeline-time { font-size: 13px; }
    .timeline-image { max-height: 220px; }

    .logistics-grid { gap: 16px; }
    .logistics-item { padding: 16px 8px; }
    .logistics-icon { width: 40px; height: 40px; font-size: 18px; }
    .logistics-value { font-size: 13px; }

    .bottom-actions { padding: 16px; gap: 14px; }
    .action-btn { padding: 18px 10px; font-size: 14px; }
    .action-btn i { font-size: 26px; }

    .footer-tip { padding: 24px 16px; font-size: 13px; }

    .modal-content { max-width: 440px; }
    .modal-body { padding: 20px; }
}

/* 大屏桌面 (1440px+) */
@media (min-width: 1440px) {
    .app-container { max-width: 1000px; }
    .hero-section { padding: 48px 40px 90px; }
    .product-name { font-size: 44px; }
    .hero-strawberry { width: 190px; height: 190px; }
}

/* 小屏移动端 (≤480px) - 弹窗底部抽屉化 */
@media (max-width: 480px) {
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .modal-content {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        animation: modalSlideUp 0.3s ease;
    }
    .photo-modal {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }
}

@keyframes modalSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* 超小屏移动端 (≤380px) */
@media (max-width: 380px) {
    .product-name { font-size: 22px; }
    .hero-strawberry { width: 90px; height: 90px; }
    .bottom-actions { grid-template-columns: 1fr; }
    .action-btn { flex-direction: row; padding: 12px; }
    .header-title { font-size: 14px; }
    .quality-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .info-grid { gap: 10px; }
    .info-value { font-size: 13px; }
    .section-card { padding: 14px; margin: 0 10px 10px; }
}
