/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #475569;
    --accent: #dc2626;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --success: #16a34a;
    --success-dark: #15803d;
    --border: #e2e8f0;
    --tech-blue: #0ea5e9;
    --tech-purple: #8b5cf6;
    --radius: 12px;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);
    --warning: #f59e0b;
    /* 卡片颜色变量 - 按照顺序1,2,3 */
    --type1-blue: #38bdf8;      /* 天空蓝 - type-1 */
    --type1-blue-dark: #0ea5e9;
    --type2-red: #ef4444;       /* 红色 - type-2 (WiFi设备) */
    --type2-red-dark: #dc2626;
    --type3-green: #22c55e;     /* 绿色 - type-3 (企业服务) */
    --type3-green-dark: #16a34a;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: #f8fafc;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px);
}

/* ==================== 骨架屏样式 ==================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

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

.skeleton-header {
    height: 120px;
    margin-bottom: 15px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-button {
    height: 44px;
    margin-top: 10px;
}

/* ==================== 头部样式 ==================== */
header {
    background: white;
    padding: clamp(12px, 2vw, 18px) 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo i {
    font-size: clamp(24px, 2.5vw, 28px);
    color: var(--primary);
}

.logo h1 {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.2;
}

.header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ==================== 核心价值卡片区域 ==================== */
.value-cards {
    padding: clamp(30px, 6vw, 50px) 0;
    background: white;
}

.value-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(20px, 3vw, 30px);
    max-width: 1000px;
    margin: 0 auto;
}

.value-card {
    background: white;
    border-radius: var(--radius);
    padding: clamp(24px, 3vw, 30px);
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.value-card:active {
    transform: translateY(-2px);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.value-icon i {
    font-size: 30px;
    color: var(--primary);
}

.value-card h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.4rem);
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.value-card p {
    color: var(--gray);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.6;
}

/* ==================== 英雄区域 ==================== */
.hero {
    padding: clamp(40px, 8vw, 60px) 0;
    text-align: center;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: min(300px, 40vw);
    height: min(300px, 40vw);
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 70%);
    border-radius: 50%;
}

.hero h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: clamp(12px, 2vw, 15px);
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--gray);
    max-width: min(700px, 90vw);
    margin: 0 auto;
    line-height: 1.6;
}

/* ==================== 平台选择区域 ==================== */
.platforms-section {
    padding: clamp(40px, 8vw, 60px) 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: clamp(30px, 6vw, 40px);
}

.section-title h2 {
    font-size: clamp(1.6rem, 3vw, 1.8rem);
    color: var(--dark);
    margin-bottom: clamp(8px, 1.5vw, 10px);
    font-weight: 700;
    line-height: 1.2;
}

.section-title p {
    color: var(--gray);
    font-size: clamp(1rem, 1.8vw, 1.05rem);
    max-width: min(700px, 90vw);
    margin: 0 auto;
    line-height: 1.5;
}

/* 关键修改：自适应居中的平台网格布局 */
.platforms-grid {
    display: grid;
    justify-content: center;  /* 网格整体水平居中 */
    justify-items: center;    /* 每个卡片内容居中 */
    gap: clamp(20px, 3vw, 30px);
    min-height: 500px;
    position: relative;
}

/* 桌面端：3个卡片并排居中 */
@media (min-width: 1024px) {
    .platforms-grid {
        grid-template-columns: repeat(3, minmax(320px, 350px)); /* 固定宽度3列 */
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* 平板端（大平板）：3个卡片并排，但稍微小一点 */
@media (min-width: 768px) and (max-width: 1023px) {
    .platforms-grid {
        grid-template-columns: repeat(3, minmax(280px, 320px));
        max-width: 1100px;
        margin: 0 auto;
    }
}

/* 平板端（小平板）：2个卡片并排居中 */
@media (min-width: 640px) and (max-width: 767px) {
    .platforms-grid {
        grid-template-columns: repeat(2, minmax(280px, 320px));
        max-width: 700px;
        margin: 0 auto;
    }
}

/* 手机端：1个卡片居中 */
@media (max-width: 639px) {
    .platforms-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }
}

.platform-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 350px; /* 限制卡片最大宽度 */
    opacity: 0;
    transform: translateY(20px);
}

.platform-card.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.platform-card:active {
    transform: translateY(-4px) scale(1.01);
}

.platform-header {
    padding: clamp(20px, 3vw, 25px);
    color: white;
    text-align: center;
}

/* ==================== 关键修复：卡片颜色对应type-1,2,3 ==================== */

/* type-1: 天空蓝 - 优选套餐服务 */
.platform-header.type-1 {
    background: linear-gradient(135deg, var(--type1-blue), var(--type1-blue-dark));
}

/* type-2: 红色 - 随身WiFi设备商城 */
.platform-header.type-2 {
    background: linear-gradient(135deg, var(--type2-red), var(--type2-red-dark));
}

/* type-3: 绿色 - 企业套餐咨询服务 */
.platform-header.type-3 {
    background: linear-gradient(135deg, var(--type3-green), var(--type3-green-dark));
}

/* 删除所有其他type样式 - 只保留上面三个 */

.platform-icon {
    font-size: clamp(32px, 4vw, 36px);
    margin-bottom: clamp(12px, 2vw, 15px);
}

.platform-header h3 {
    font-size: clamp(1.3rem, 2vw, 1.4rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
}

.platform-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 4px;
}

.platform-body {
    padding: clamp(20px, 3vw, 25px);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.platform-features {
    list-style: none;
    margin-bottom: clamp(20px, 3vw, 25px);
    flex-grow: 1;
}

.platform-features li {
    padding: clamp(8px, 1.5vw, 10px) 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    font-size: clamp(0.9rem, 1.5vw, 0.95rem);
}

.platform-features li:last-child {
    border-bottom: none;
}

.platform-features i {
    color: var(--success);
    margin-right: 10px;
    font-size: clamp(14px, 1.5vw, 16px);
    flex-shrink: 0;
}

.platform-button {
    display: block;
    text-align: center;
    background: var(--primary);
    color: white;
    padding: clamp(10px, 2vw, 12px);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: clamp(0.95rem, 1.5vw, 1rem);
    min-height: 44px;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    line-height: 1.4;
    padding: 12px 24px;
}

.platform-button:hover {
    background: var(--primary-dark);
}

.platform-button:active {
    transform: translateY(1px);
}

.platform-button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ==================== FAQ区域 ==================== */
.faq-section {
    background: white;
    padding: clamp(40px, 8vw, 60px) 0;
    border-top: 1px solid var(--border);
}

.faq-container {
    max-width: min(800px, 90vw);
    margin: 0 auto;
}

.faq-item {
    margin-bottom: clamp(20px, 3vw, 25px);
    background: var(--light);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 25px);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-item h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.2rem);
    color: var(--dark);
    margin-bottom: clamp(10px, 2vw, 12px);
    font-weight: 600;
    line-height: 1.3;
}

.faq-item p {
    color: var(--gray);
    line-height: 1.6;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

/* ==================== 客服浮动按钮 ==================== */
.wechat-float {
    position: fixed;
    bottom: clamp(20px, 4vw, 30px);
    right: clamp(20px, 4vw, 30px);
    z-index: 1000;
}

.wechat-btn {
    width: clamp(56px, 6vw, 60px);
    height: clamp(56px, 6vw, 60px);
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(22px, 2.5vw, 24px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 44px;
    position: relative;
    overflow: hidden;
    min-width: 56px;
    min-height: 56px;
    touch-action: manipulation;
}

.wechat-btn:hover {
    transform: scale(1.1);
    background: var(--success-dark);
}

.wechat-btn:active {
    transform: scale(0.95);
}

/* ==================== 页脚 ==================== */
footer {
    background: var(--dark);
    color: white;
    padding: clamp(40px, 6vw, 50px) 0 clamp(20px, 4vw, 30px);
    text-align: center;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: clamp(20px, 4vw, 30px);
}

.footer-section h3 {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    margin-bottom: clamp(12px, 2vw, 16px);
    font-weight: 600;
    color: white;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.7;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    margin-bottom: clamp(12px, 2vw, 16px);
}

.policy-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.policy-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 140px;
    text-align: center;
    display: inline-block;
}

.policy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.policy-btn:active {
    transform: translateY(0);
}

.copyright {
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    color: #94a3b8;
    padding-top: clamp(15px, 3vw, 20px);
    margin-top: clamp(20px, 4vw, 30px);
    line-height: 1.8;
    border-top: 1px solid #334155;
}

.copyright p {
    margin-bottom: 12px;
}

.copyright p:last-child {
    margin-bottom: 0;
}

.disclaimer {
    color: #94a3b8;
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    line-height: 1.7;
    max-width: 600px;
    margin: 20px auto 0;
}

/* ==================== 响应式设计 ==================== */

/* 超大屏幕 (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
}

/* 大屏幕 (1200px-1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .platforms-grid {
        grid-template-columns: repeat(3, minmax(320px, 350px));
    }
}

/* 中等屏幕 (1024px-1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .platforms-grid {
        grid-template-columns: repeat(3, minmax(300px, 330px));
        gap: 25px;
    }
    
    .container {
        padding: 0 20px;
    }
}

/* 平板竖屏 (768px-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .platforms-grid {
        grid-template-columns: repeat(3, minmax(280px, 320px));
        gap: 20px;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* 大手机 (640px-767px) */
@media (min-width: 640px) and (max-width: 767px) {
    .platforms-grid {
        grid-template-columns: repeat(2, minmax(280px, 320px));
        gap: 20px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .policy-buttons {
        gap: 15px;
    }
}

/* 小手机 (480px-639px) */
@media (min-width: 480px) and (max-width: 639px) {
    .platforms-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 1.05rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
}

/* 超小手机 (< 480px) */
@media (max-width: 479px) {
    .container {
        padding: 0 16px;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 320px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .section-title h2 {
        font-size: 1.4rem;
    }
    
    .platform-header {
        padding: 18px 16px;
    }
    
    .platform-body {
        padding: 18px 16px;
    }
    
    .wechat-float {
        bottom: 16px;
        right: 16px;
    }
    
    .policy-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .policy-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* 超小屏幕 (< 375px) */
@media (max-width: 374px) {
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .platform-header h3 {
        font-size: 1.2rem;
    }
    
    .platform-features li {
        font-size: 0.9rem;
    }
    
    .value-card h3 {
        font-size: 1.2rem;
    }
    
    .value-card p {
        font-size: 0.9rem;
    }
}

/* ==================== 模态框样式 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-content {
    background: white;
    padding: clamp(20px, 4vw, 30px);
    border-radius: var(--radius);
    max-width: min(500px, 90vw);
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

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

.modal h3 {
    margin-bottom: clamp(12px, 2vw, 15px);
    color: var(--dark);
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    text-align: center;
}

.modal h4 {
    margin: 20px 0 10px;
    color: var(--dark);
    font-size: 1.1rem;
}

.modal p {
    margin-bottom: clamp(16px, 3vw, 20px);
    color: var(--gray);
    line-height: 1.6;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

.modal ul {
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--gray);
}

.modal li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* 微信模态框专属样式 */
.wechat-id-display {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}

.wechat-id-label {
    font-weight: 600;
    color: var(--dark);
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.wechat-id {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 600;
    color: var(--primary);
    background: white;
    padding: clamp(10px, 2vw, 12px);
    border-radius: 6px;
    margin: 10px 0;
    display: inline-block;
    word-break: break-all;
    text-align: center;
    width: 100%;
    border: 2px dashed var(--primary);
    position: relative;
    transition: all 0.3s ease;
}

.wechat-id.copied {
    border-color: var(--success);
    background: #f0fdf4;
    color: var(--success);
}

.copy-status {
    font-size: 0.9rem;
    color: var(--success);
    height: 20px;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.copy-status::before {
    content: '✓';
    margin-right: 5px;
}

.qrcode-section {
    margin: 25px 0;
    text-align: center;
}

.qrcode-container {
    margin: 0 auto 15px;
    padding: 15px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: inline-block;
    max-width: 250px;
}

.qrcode-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 10px;
    border: 1px solid #e9ecef;
}

.qrcode-fallback {
    padding: 20px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 8px;
    color: #92400e;
    font-size: 0.95rem;
    border: 1px dashed #f59e0b;
    text-align: center;
}

.qrcode-tip {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 10px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 25px 0;
    flex-wrap: wrap;
}

.modal-btn {
    padding: clamp(10px, 2vw, 12px) clamp(16px, 2.5vw, 20px);
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 44px;
    height: auto;
    flex: 1;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: clamp(0.95rem, 1.5vw, 1rem);
    text-align: center;
    line-height: 1.4;
}

.modal-btn i {
    font-size: 1.1em;
}

.modal-btn-primary {
    background: var(--primary);
    color: white;
}

.modal-btn-primary:hover {
    background: var(--primary-dark);
}

.modal-btn-success {
    background: var(--success);
    color: white;
}

.modal-btn-success:hover {
    background: var(--success-dark);
}

.modal-btn-secondary {
    background: #e2e8f0;
    color: var(--dark);
}

.modal-btn-secondary:hover {
    background: #cbd5e1;
}

.modal-btn:active {
    transform: translateY(1px);
}

.modal-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.modal-btn.processing {
    background: #9ca3af;
    cursor: not-allowed;
}

.modal-btn.processing::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 智能指引区域 */
.smart-guidance {
    margin: 25px 0;
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.guidance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
}

.guidance-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.guidance-header h4 i {
    color: var(--primary);
}

.toggle-guidance {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    padding: 5px;
}

.toggle-guidance:hover {
    color: var(--dark);
}

.toggle-guidance.active {
    transform: rotate(180deg);
}

.guidance-content {
    padding: 20px;
}

.environment-hint {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.environment-hint i {
    color: #f59e0b;
    font-size: 1.2em;
}

.core-steps {
    margin-bottom: 20px;
}

.core-steps h5 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: var(--dark);
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: var(--gray);
    display: flex;
    align-items: center;
}

.steps-list li:last-child {
    border-bottom: none;
}

.steps-list li::before {
    content: counter(step);
    counter-increment: step;
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.steps-list {
    counter-reset: step;
}

.detailed-guidance {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.guidance-tab {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 12px;
    background: #e2e8f0;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #cbd5e1;
    color: var(--dark);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-content {
    display: none;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--gray);
}

.tab-content.active {
    display: block;
}

.tab-content p {
    margin: 8px 0;
    line-height: 1.5;
}

.tips-section {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray);
}

.tip-item i {
    color: var(--success);
}

/* Toast提示样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    z-index: 3000;
    font-size: 14px;
    animation: toastSlideIn 0.3s ease forwards;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast i {
    font-size: 1.2em;
}

.toast-success {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.toast-error {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.toast-info {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.toast-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* 模态框在小屏幕上的优化 */
@media (max-width: 640px) {
    .modal-content {
        padding: 20px 16px;
        max-height: 85vh;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}

/* ==================== 无障碍优化 ==================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 焦点样式 */
a:focus-visible, 
button:focus-visible, 
.platform-button:focus-visible, 
.modal-btn:focus-visible, 
.policy-btn:focus-visible,
.wechat-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .platform-card,
    .value-card,
    .modal-content {
        transition: none !important;
    }
    
    .modal-content {
        animation: none !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .platform-header,
    .platform-button,
    .wechat-btn,
    .modal-btn-primary,
    .friend-link a {
        border: 2px solid currentColor;
    }
    
    .platform-features i {
        filter: brightness(0.8);
    }
}

/* 黑暗模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .value-card,
    .platform-card,
    .faq-item,
    .modal-content {
        background-color: #2d2d2d;
        border-color: #404040;
    }
    
    .hero {
        background: linear-gradient(135deg, #1a3a5f, #0f2a4a);
    }
    
    .platform-header h3,
    .value-card h3,
    .faq-item h3,
    .modal h3,
    .modal h4 {
        color: #ffffff;
    }
    
    .value-card p,
    .platform-features li,
    .faq-item p,
    .modal p,
    .modal li {
        color: #b0b0b0;
    }
    
    .modal-btn-secondary {
        background-color: #404040;
        color: #e0e0e0;
    }
    
    .wechat-id-display {
        background: linear-gradient(135deg, #1a3a5f, #0f2a4a);
        border-color: #404040;
    }
    
    .wechat-id {
        background-color: #2d2d2d;
        border-color: var(--primary);
    }
    
    .smart-guidance {
        background-color: #2d2d2d;
        border-color: #404040;
    }
    
    .guidance-header {
        background-color: #404040;
    }
    
    .tab-content {
        background-color: #2d2d2d;
        border-color: #404040;
    }
    
    .environment-hint {
        background-color: #332701;
        border-color: #665002;
        color: #ffd54f;
    }
    
    .qrcode-container {
        background-color: #2d2d2d;
        border-color: #404040;
    }
}