/* --- 基础文字效果 --- */
.gradient-text {
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Home 核心样式 --- */
#home {
    /* 移除之前可能存在的强制 padding */
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    background-color: #0f172a;
    position: relative;
}

@keyframes infinite-scroll {
    from {
        transform: translateX(0);
    }
    to {
        /* 必须是 -50%，对应两张图的情况 */
        transform: translateX(-50%);
    }
}

.animate-infinite-scroll {
    display: flex !important;
    /* 移除所有可能导致宽度计算错误的因素 */
    gap: 0 !important; 
    padding: 0 !important;
    margin: 0 !important;
    /* 确保动画匀速且无限循环 */
    animation: infinite-scroll 45s linear infinite !important;
    will-change: transform;
    height: 100%;
}

.animate-infinite-scroll img {
    height: 100% !important;
    width: auto !important;
    display: block !important;
    flex-shrink: 0 !important;
    /* 严禁在图片上设置 margin */
    margin: 0 !important; 
}

/* 文字阴影：增强在动态背景下的可读性 */
#home h1 {
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

#home p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* --- 导航栏优化 --- */
nav {
    /* 配合内容居中，让导航栏稍微透明并带有毛玻璃效果 */
    background-color: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(8px);
    transition: background-color 0.3s ease;
}

/* --- 章节衔接处理 --- */
#features {
    position: relative;
    z-index: 20; /* 确保盖在滚动背景层之上 */
    margin-top: 0 !important;
    /* 给予顶部 padding，平衡 home 下方的负 margin */
    padding-top: 60px !important;
    background-color: #0f172a;
}

/* --- 响应式调整 --- */
@media (max-width: 768px) {
    #home h1 {
        font-size: 2.5rem;
    }
    /* 移动端缩小 Logo 栏的负间距，避免遮挡内容 */
    #home .relative.z-10 div {
        margin-bottom: -1rem !important;
    }
}

/* --- 其他原有组件样式 --- */
/* 加载圈 */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: #3b82f6;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }


/* --- 评论与FAQ区域基础背景 --- */
#reviews {
    background-color: #f8f9fa !important; /* 烟白色底层 */
    border-top: 1px solid #e9ecef;
}

.review-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.review-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: review-scroll 40s linear infinite;
}

@keyframes review-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}


/* --- 评论卡片：使用纯白产生对比 --- */
.review-card {
    position: relative;
    max-width: 320px;
    width: 100%;
    border-radius: 20px;
    background: #ffffff !important; /* 卡片设为纯白，在 #f8f9fa 背景上会很显眼 */
    padding: 10px;
    border: 1px solid #dee2e6;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05); /* 柔和阴影 */
}

/* FAQ Section */
.faq-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-weight: 700;
}

.faq-subtitle {
    text-align: center;
    color: #007bff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 50px;
}

.faq-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: left;
    outline: none;
}

.faq-question:hover {
    color: #007bff;
}

.icon {
    font-size: 1.5rem;
    color: #007bff;
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-question.active .icon {
    transform: rotate(45deg);
    color: #dc3545;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
    background-color: #fff;
}

.faq-answer p {
    padding: 0 25px 20px 25px;
    margin: 0;
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- 最近购买 · 竖向滚动 --- */
.purchase-vertical {
    height: 64px;              /* 可视区域高度（关键） */
    overflow: hidden;
    position: relative;
    justify-content: center;   /* 水平居中 */
    align-items: center;       /* 垂直居中 */
}

.purchase-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: purchase-vertical-scroll 100s linear infinite;
}

@keyframes purchase-vertical-scroll {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%);
    }
}

.purchase-item {
    white-space: nowrap;
    font-size: 0.95rem;
    color: #d1d5db;
    background: rgba(30, 41, 59, 0.8);
    padding: 8px 14px;
    border-radius: 9999px;
    border: 1px solid #334155;
}

@media (max-width: 640px) {
    .purchase-item {
        font-size: 0.75rem;   /* 关键 */
        padding: 6px 10px;    /* 同步缩小内边距 */
        max-width: 100vw;
    }
}

.iti {
    width: 100%;
}

.iti input {
    width: 100%;
}

.iti__country-list {
    z-index: 9999;
    background-color: #1e293b; /* 适配你暗色 */
    color: white;
}