/* --- V1 竖向版 Style.css --- */

/* --- Variables & Reset --- */
:root {
    --color-bg: #F8FAFC;
    --color-text-main: #1E293B;
    --color-text-muted: #475569;
    --color-primary: #4F46E5;
    --color-accent: #EA580C;
    --color-accent-hover: #C2410C;
    --color-success: #10B981;
    --color-danger: #EF4444; 
    --color-danger-hover: #DC2626;
    --color-white: #ffffff;
    --color-border: #E2E8F0;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout Components (全平台统一窄版阅读体验) --- */
.container {
    max-width: 800px; /* PC 端也限制在 800px，保证阅读流 */
    margin: 0 auto;
    padding: 20px;
}

.top-banner {
    background: #1e293b;
    color: white;
    font-size: 13px;
    text-align: center;
    padding: 8px;
    font-weight: 500;
}

.navbar {
    background: var(--color-white);
    padding: 15px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.brand-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.brand-logo { height: 32px; width: 32px; color: var(--color-primary); }
.brand-name-1 { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: #0F172A; }

/* --- Editorial Header --- */
.article-header { margin-bottom: 40px; text-align: left; }
.article-header h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #0f172a;
}

.author-block { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.author-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author-name { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.verified-badge { 
    background: #DEF7EC; color: #03543F; font-size: 11px; 
    padding: 2px 6px; border-radius: 4px; text-transform: uppercase; margin-left: 5px; 
}
.publish-date { font-size: 13px; color: var(--color-text-muted); }

.author-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.author-meta { font-size: 13px; color: #64748b; margin-bottom: 6px; }
.social-proof-bar { display: flex; gap: 15px; font-size: 12px; color: #475569; font-weight: 600; margin-top: 5px; }
.metric-item { display: flex; align-items: center; gap: 4px; }
.icon-small { width: 14px; height: 14px; color: #94a3b8; }

.methodology-box {
    background-color: #f1f5f9;
    border-left: 4px solid var(--color-primary);
    padding: 16px;
    margin: 20px 0 30px 0;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.method-icon { flex-shrink: 0; color: var(--color-primary); width: 24px; height: 24px; margin-top: 2px; }
.method-content { font-size: 14px; color: var(--color-text-main); line-height: 1.5; }
.method-title { display: block; font-weight: 800; font-family: var(--font-heading); color: #1e293b; margin-bottom: 4px; font-size: 15px; }
.method-text { color: #475569; margin: 0; }
.highlight { background-color: #fef3c7; padding: 0 4px; font-weight: 600; color: #92400e; border-radius: 2px; }
.underline-dot { border-bottom: 1px dotted #94a3b8; cursor: help; }
.divider { border: 0; border-top: 1px solid var(--color-border); margin: 25px 0; }

/* --- Product Cards (优化布局：标题旁置) --- */
.product-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

/* 链接包裹器 */
.product-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block; /* 默认 block */
    cursor: pointer;
}
.product-link-wrapper:hover .product-title {
    color: var(--color-primary); 
    text-decoration: underline;
}
.product-link-wrapper:hover .media-wrapper {
    opacity: 0.9;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Top 1 高亮样式 */
.product-card[data-rank="1"] {
    border: 2px solid #F59E0B;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.15), 0 8px 10px -6px rgba(245, 158, 11, 0.1);
}
/* --- Ribbon 优化版 (不挡标题) --- */
.ribbon {
    position: absolute;
    /* 将 top 改为负值，让它向上移动到卡片边框之外 */
    top: -6px; 
    /* 将 left 改为负值，让它贴合左边缘并制造悬挂感 */
    left: -8px; 
    background: #F59E0B;
    color: white;
    padding: 3px 16px;
    font-weight: 800; /* 稍微加粗 */
    font-size: 14px;  /* 稍微加大字号 */
    border-radius: 8px 0 12px 0; /* 重新设计圆角：左上圆，右下大圆 */
    z-index: 10;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2); /* 增加阴影，提升立体感 */
    
    /* 可选：增加一个小的“折角”效果 */
    /* &::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 8px 8px 0;
        border-color: transparent #D97706 transparent transparent;
    }
    */
}

/* 头部信息 (关键修改：Flex布局优化) */
.card-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; /* 顶部对齐 */
    margin-bottom: 15px; 
    gap: 15px; /* 元素间距 */
}

/* 左侧容器：包含 Rank 和 Title */
.header-left {
    display: flex;
    align-items: flex-start;
    gap: 12px; /* Rank 和 Title 的间距 */
    flex: 1; /* 占据剩余空间 */
}

/* 排名代号 (固定尺寸) */
.rank-badge { 
    background: var(--color-text-main); 
    color: white; 
    width: 36px; /*稍微加大一点，视觉平衡 */
    height: 36px; 
    flex-shrink: 0; /* 防止被标题挤压 */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    font-weight: bold; 
    font-family: var(--font-heading);
    font-size: 16px;
    margin-top: 2px; /* 微调垂直对齐，使其与标题第一行对齐 */
}

/* 标题 (移除下边距，由父容器控制) */
.product-title {
    font-family: var(--font-heading);
    font-size: 20px; /* 稍微调小一点，适应并排布局 */
    margin: 0; /* 移除默认边距 */
    color: #0F172A;
    line-height: 1.4;
    font-weight: 700;
}

/* 评分盒子 (保持在右侧) */
.rating-box { 
    text-align: right; 
    flex-shrink: 0; /* 防止被挤压 */
    min-width: 60px; /* 保证评分不换行 */
}
.score { font-size: 20px; font-weight: 800; color: var(--color-primary); display: block; }
.stars { color: #F59E0B; font-size: 12px; white-space: nowrap; }

/* 移动端微调 */
@media (max-width: 640px) {
    .rank-badge { width: 30px; height: 30px; font-size: 14px; margin-top: 3px; }
    .product-title { font-size: 18px; }
    .card-header { gap: 10px; }
    .header-left { gap: 8px; }
}

/* 媒体区域 (优化：限制最大宽度，居中) */
.media-wrapper {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    position: relative;
    /* 竖向布局下，让图片高度自适应，不要强制拉伸 */
    min-height: auto; 
}
.media-wrapper img, .media-wrapper video { 
    width: 100%; 
    display: block; 
    height: auto; 
    max-height: 500px; /* 防止长图占满屏幕 */
    object-fit: cover; 
}

/* 描述列表 */
.desc-list { 
    list-style: none; 
    margin-bottom: 20px; 
    padding: 0; 
}
.desc-list li { 
    margin-bottom: 12px; 
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.6;
    display: flex; 
    align-items: flex-start;
    gap: 8px; 
}

/* 库存条 */
.inventory-container { margin: 20px 0; }
.inventory-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #B91C1C; margin-bottom: 5px; }
.progress-bar { width: 100%; height: 8px; background: #E2E8F0; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: #EF4444; border-radius: 4px; transition: width 0.5s ease; }

/* 按钮 */
.cta-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, var(--color-accent), #EA580C);
    color: white;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.3);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(234, 88, 12, 0.4); }
.sale-text { text-align: center; display: block; margin-top: 10px; font-size: 13px; color: #B91C1C; font-weight: 600; }

/* --- Sticky Footer (全平台舒适版) --- */
/* PC端与移动端共享一套基础样式，通过宽度限制优化 PC 体验 */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 100;
    transition: transform 0.3s ease-in-out;
    padding: 12px 20px; /* 默认舒适间距 */
    min-height: 80px; /* 默认舒适高度 */
    display: flex;
    align-items: center;
    justify-content: center; /* PC端居中 */
}
.sticky-footer.hidden { transform: translateY(100%); }

.sticky-content { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    width: 100%;
    max-width: 900px; /* PC端限制最大宽度，防止内容分得太开 */
    gap: 20px;
}

/* 1. 左侧 #1 徽章 */
.sticky-inventory-wrapper {
    flex-grow: 1; 
    max-width: none; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-left: 48px; /* 留出徽章空间 */
}

.sticky-inventory-wrapper::before {
    content: '#1';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    border-radius: 50%;
    font-weight: 900;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
    z-index: 2;
    border: 2px solid white;
}

/* 2. 中间文案与进度条 */
.sticky-inv-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 6px;
    line-height: 1.2;
}

.sticky-inv-text .text-label { 
    font-size: 12px; 
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.sticky-inv-text .text-value { 
    font-size: 14px;
    color: #DC2626;
    font-weight: 800;
    display: flex;
    align-items: center;
}

.sticky-inv-text .text-value::before {
    content: '🔥';
    font-size: 14px;
    margin-right: 6px;
}

.sticky-progress-bg {
    height: 8px;
    background: #F1F5F9;
    border-radius: 4px;
    width: 100%;
}

.sticky-progress-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #EF4444, #DC2626);
}

/* 3. 右侧按钮 */
.sticky-cta { 
    padding: 0 30px;
    height: 48px;
    font-size: 16px; 
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
    background: linear-gradient(to bottom, #EF4444, #DC2626);
    color: white;
    border: none;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    animation: heartbeat 2s infinite;
}

.sticky-cta:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

@keyframes heartbeat {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    10% { transform: scale(1.05); } 
    20% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* 隐藏旧版元素 */
.sticky-text { display: none !important; }

/* 移动端微调 (Max-Width 640px) */
@media (max-width: 640px) {
    .container { padding: 15px; } /* 减少边距，增加内容区 */
    
    .sticky-footer { 
        padding: 10px 16px; 
        min-height: 80px;
    }
    
    .sticky-content { gap: 12px; }
    
    .sticky-inventory-wrapper { padding-left: 42px; }
    .sticky-inventory-wrapper::before { width: 34px; height: 34px; font-size: 15px; }
    
    .sticky-inv-text .text-label { font-size: 10px; }
    .sticky-inv-text .text-value { font-size: 12px; }
    .sticky-inv-text .text-value::before { font-size: 12px; margin-right: 4px; }
    
    .sticky-cta { 
        padding: 0 16px; 
        height: 42px; 
        font-size: 14px; 
        min-width: 100px; 
    }
}
/* --- Legal Footer (优化版) --- */
.site-footer {
    background-color: #0f172a; /* 深蓝黑背景 */
    color: #94a3b8;
    padding: 40px 0 20px 0;
    font-size: 12px;
    margin-top: 50px;
    border-top: 1px solid #1e293b;
}

/* 链接区域布局 */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #1e293b; /* 分割线 */
}

.brand-name { color: white; font-weight: bold; font-size: 16px; margin-bottom: 10px; }
.footer-col h4 { color: white; margin-bottom: 15px; text-transform: uppercase; font-size: 12px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: #94a3b8; text-decoration: none; }
.footer-col a:hover { color: white; text-decoration: underline; }

/* --- 核心修改：免责声明文本块样式 --- */
.legal-disclaimers-block {
    color: #64748b; /* 灰色，比正文淡，降低视觉干扰 */
    font-size: 10px; /* 小号字体 */
    line-height: 1.5;
    text-align: justify; /* 两端对齐，看起来更整齐 */
}

.legal-disclaimers-block p {
    margin-bottom: 12px;
}

.legal-disclaimers-block strong {
    color: #94a3b8; /* 标题稍微亮一点 */
    text-transform: uppercase;
}

/* 垫片 */
.footer-spacer { height: 80px; }

/* 移动端适配 */
@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .legal-disclaimers-block {
        text-align: left; /* 手机上左对齐阅读体验更好 */
    }
}