/* =============================================
   二八度官网 - 共享样式表
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;600;700;900&display=swap');

/* CSS变量 */
:root {
    --primary: #0ABAB5;
    --primary-dark: #089994;
    --primary-light: #5DC9C4;
    --secondary: #FFD700;
    --dark: #0D1B2A;
    --dark-light: #1B263B;
    --gray: #6B7280;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #0ABAB5 0%, #5DC9C4 100%);
    --gradient-dark: linear-gradient(135deg, #089994 0%, #0ABAB5 100%);
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(10, 186, 181, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(10, 186, 181, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(10, 186, 181, 0.3);
}

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* Section通用 */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(10, 186, 181, 0.12);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 20px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: #111111;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

.logo-img {
    height: 40px;
    width: auto;
}

.nav ul {
    display: flex;
    gap: 36px;
}

.nav a {
    font-size: 15px;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav a:hover,
.nav a.active {
    color: #0ABAB5;
}

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

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-phone:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

/* 页脚 */
.footer {
    background: #070D15;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 36px;
    width: auto;
}

.footer-slogan {
    font-size: 24px;
    color: #0ABAB5;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-phone {
        display: none;
    }

    .nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #000;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        padding: 20px;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 16px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .section-tag {
        font-size: 12px;
        padding: 4px 12px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* 动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 页面通用头部 */
.page-hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #0ABAB5 0%, #089994 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -1px;
    position: relative;
}

.page-hero p {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }

    .page-hero h1 {
        font-size: 32px;
    }

    .page-hero p {
        font-size: 16px;
        padding: 0 20px;
    }
}