/* ========================================
   相遇派官网 - 全站统一样式
   设计风格: 现代简约 | 主题色: 紫色系
   ======================================== */

/* ===== CSS变量定义 ===== */
:root {
    /* 主题色 */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-dark: #764ba2;

    /* 辅助色 */
    --accent-pink: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-blue: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --accent-orange: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

    /* 中性色 */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;

    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== 通用容器 ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 40px;
}

/* ===== 统一导航栏样式 ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.site-header.transparent {
    background: transparent;
    box-shadow: none;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
}

.header-logo span {
    font-size: 22px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    gap: 8px;
}

.header-nav a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.header-nav-mobile {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.header-nav-mobile svg {
    width: 24px;
    height: 24px;
    fill: var(--text-primary);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    padding: 20px;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    color: var(--text-secondary);
    font-size: 16px;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* ===== 统一页脚样式 ===== */
.site-footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding-top: 60px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand-logo img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

.footer-brand-logo span {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-company-info {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 2;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.footer-column a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-column .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-column .contact-item svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin: 5px 0;
}

.footer-bottom a {
    color: var(--primary-color);
}

.footer-bottom a:hover {
    color: #fff;
}

/* ===== 页面内容区 ===== */
.page-content {
    min-height: calc(100vh - 70px);
    padding-top: 70px;
}

/* 页面头部横幅 */
.page-banner {
    background: var(--primary-gradient);
    padding: 80px 20px;
    text-align: center;
    color: #fff;
}

.page-banner h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 内容区域 */
.content-section {
    padding: 80px 20px;
    background: var(--bg-white);
}

.content-section.alt {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== 卡片样式 ===== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
}

.card-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: inherit;
    opacity: 0.2;
    transform: rotate(-8deg);
    z-index: -1;
}

.card-icon svg {
    width: 40px;
    height: 40px;
    fill: #fff;
}

.card-icon.purple { background: var(--primary-gradient); }
.card-icon.pink { background: var(--accent-pink); }
.card-icon.blue { background: var(--accent-blue); }
.card-icon.orange { background: var(--accent-orange); }

.card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
}

/* ===== 网格布局 ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
}

/* ===== 用户评价 ===== */
.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-top: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.testimonial-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.testimonial-info span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== 安全信任标识 ===== */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 30px 0;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.trust-badge-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-badge-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--primary-color);
}

.trust-badge span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== 统计数字 ===== */
.stats-section {
    background: var(--primary-gradient);
    padding: 60px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
        height: 60px;
    }

    .header-nav {
        display: none;
    }

    .header-nav-mobile {
        display: block;
    }

    .page-banner {
        padding: 60px 20px;
    }

    .page-banner h1 {
        font-size: 32px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .content-section {
        padding: 50px 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-brand-logo {
        justify-content: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-column {
        text-align: center;
    }

    .footer-column .contact-item {
        justify-content: center;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-item h3 {
        font-size: 36px;
    }

    .trust-badges {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container-fluid {
        padding: 0 15px;
    }

    .page-banner h1 {
        font-size: 26px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .card {
        padding: 30px 20px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}
