/* ========================================
   亲在这里官网 - 移动优先样式
   最小支持宽度: 320px
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --brand-primary: #FDBA3F;
    --brand-secondary: #FF8C00;
    --brand-light: #FFF3E0;
    --bg-white: #ffffff;
    --bg-gray: #f8f9fa;
    --text-main: #1a1a2e;
    --text-secondary: #666;
    --text-muted: #999;
    --border-light: #eee;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --radius: 16px;
    --radius-sm: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-white);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 14px;
}

/* ===== 容器 ===== */
.container {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
}

/* ===== 头部导航 ===== */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.logo {
    display: flex;
    align-items: left;
    gap: 8px;
    text-decoration: none;
}

.logo img {
    height: 32px;
    width: auto;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.logo-text:hover {
    color: var(--brand-primary);
}

/* 移动端导航 - 抽屉式 */
.mobile-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main);
    padding: 4px 8px;
}

.nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    z-index: 99;
}

.nav.active {
    display: flex;
}

.nav a {
    padding: 14px 0;
    text-decoration: none;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
}

.nav a:last-child {
    border-bottom: none;
}

.nav a.active,
.nav a:hover {
    color: var(--brand-primary);
}

/* ===== 页脚 ===== */
.footer {
    background: var(--bg-gray);
    border-top: 1px solid var(--border-light);
    padding: 32px 16px 24px;
    margin-top: 40px;
    text-align: center;
}

.footer-company {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--brand-primary);
}

.footer-copyright {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-icp {
    font-size: 11px;
    color: var(--text-muted);
}

.footer-icp a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-icp p {
    margin-bottom: 6px;
}

.beian-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.beian-icon img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

/* ===== 公共组件 ===== */
.section {
    padding: 40px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--brand-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn:active {
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
}

.btn-outline:active {
    background: var(--brand-primary);
    color: white;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 卡片 */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

/* 网格布局 - 移动端单列 */
.grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 两列网格 - 仅在大屏生效 */
@media (min-width: 480px) {
    .grid-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .btn {
        width: auto;
        min-width: 160px;
    }
    
    .btn-group {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .mobile-toggle {
        display: none;
    }
    
    .nav {
        display: flex;
        position: static;
        flex-direction: row;
        padding: 0;
        border: none;
        box-shadow: none;
        gap: 24px;
    }
    
    .nav a {
        padding: 0;
        border: none;
        font-size: 14px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* ===== 辅助类 ===== */
.text-center { text-align: center; }
.text-primary { color: var(--brand-primary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }