/* 转兑通 - 微信转支付宝平台样式表 */
/* 符合百度手机SEO标准的响应式设计 */

:root {
    --primary-color: #07c160;
    --primary-dark: #059b4a;
    --secondary-color: #1677ff;
    --secondary-dark: #0958d9;
    --text-primary: #1f1f1f;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-light: #f7f8fa;
    --bg-white: #ffffff;
    --border-color: #e5e6eb;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 屏幕阅读器专用 */
.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;
}

/* 站点头部 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--bg-white);
}

.logo-icon {
    font-size: 28px;
    margin-right: 8px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 主导航 */
.main-nav {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bg-white);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bg-white);
}

/* 主内容区域 */
.main-content {
    padding-top: 60px;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #06a554 50%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: 60px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    letter-spacing: 4px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 8px;
    opacity: 0.95;
    font-weight: 500;
}

.hero-desc {
    font-size: 16px;
    margin-bottom: 32px;
    opacity: 0.9;
    letter-spacing: 2px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

/* 通用区块样式 */
.section-header {
    text-align: center;
    padding: 40px 20px 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 优势区块 */
.advantages-section {
    background: var(--bg-white);
    padding-bottom: 30px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.advantage-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.advantage-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.advantage-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.advantage-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 服务区块 */
.service-section {
    background: var(--bg-light);
    padding-bottom: 30px;
}

.service-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 30px 24px;
    position: relative;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.service-wechat::before {
    background: linear-gradient(90deg, #07c160, #4caf50);
}

.service-alipay::before {
    background: linear-gradient(90deg, #1677ff, #4096ff);
}

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.service-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 24px;
}

.service-features li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
}

.service-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 10px;
}

.btn-service {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(7, 193, 96, 0.4);
}

/* 流程区块 */
.process-section {
    background: var(--bg-white);
    padding-bottom: 40px;
}

.process-steps {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    padding-left: 48px;
    height: 30px;
    display: flex;
    align-items: center;
}

.step-connector span {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
    opacity: 0.4;
}

/* FAQ区块 */
.faq-section {
    background: var(--bg-light);
    padding-bottom: 30px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: background 0.3s;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '▼';
    font-size: 12px;
    color: var(--text-light);
    transition: transform 0.3s;
}

.faq-item[open] .faq-question::after {
    transform: rotate(180deg);
}

.faq-item[open] .faq-question {
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px 20px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 提示区块 */
.tips-section {
    background: var(--bg-white);
    padding-bottom: 30px;
}

.tips-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

.tips-list {
    list-style: none;
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    border-radius: var(--radius-lg);
    padding: 24px;
    border-left: 4px solid #ffc107;
}

.tips-list li {
    font-size: 14px;
    color: #856404;
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

.tips-list li::before {
    content: '⚠️';
    flex-shrink: 0;
}

/* 联系区块 */
.contact-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding-bottom: 30px;
}

.contact-content {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    font-size: 32px;
}

.contact-label {
    font-size: 14px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.contact-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-left: auto;
}

.contact-notice {
    max-width: 500px;
    margin: 20px auto 0;
    padding: 0 16px;
}

.contact-notice p {
    font-size: 13px;
    color: #1976d2;
    text-align: center;
    padding: 12px 16px;
    background: rgba(25, 118, 210, 0.1);
    border-radius: var(--radius-sm);
}

/* 信任区块 */
.trust-section {
    background: var(--bg-white);
    padding: 30px 16px;
    border-top: 1px solid var(--border-color);
}

.trust-grid {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.trust-icon {
    font-size: 24px;
}

.trust-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 页脚 */
.site-footer {
    background: #1a1a1a;
    color: var(--bg-white);
    padding: 40px 20px 100px;
    text-align: center;
}

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

.footer-brand {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.footer-stats strong {
    color: var(--primary-color);
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}

.footer-record {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.footer-record a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-record a:hover {
    color: var(--primary-color);
}

/* 浮动客服按钮 */
.float-service {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.service-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(7, 193, 96, 0.4);
    transition: all 0.3s;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(7, 193, 96, 0.5);
}

.service-btn-icon {
    font-size: 20px;
}

/* 响应式设计 */
@media (min-width: 640px) {
    .hero-title {
        font-size: 44px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .main-nav {
        display: block;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .advantages-grid .advantage-card:nth-child(4),
    .advantages-grid .advantage-card:nth-child(5),
    .advantages-grid .advantage-card:nth-child(6) {
        grid-column: span 1;
    }
    
    .process-steps {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        max-width: 1000px;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        width: 22%;
        padding: 20px 10px;
    }
    
    .step-number {
        margin-bottom: 12px;
    }
    
    .step-connector {
        display: none;
    }
}

/* 平板横屏和大屏幕手机 */
@media (max-width: 380px) {
    .hero-title {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 20px;
    }
}

/* 优化触摸体验 */
@media (hover: none) and (pointer: coarse) {
    .advantage-card:hover,
    .btn-service:hover,
    .service-btn:hover {
        transform: none;
    }
    
    .btn:active,
    .btn-service:active {
        transform: scale(0.98);
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .advantage-card,
    .service-card,
    .faq-item {
        border: 2px solid var(--text-primary);
    }
}
