/* 主样式文件 - 企业官网 */
@import url('overall.min.css');

/* 自定义变量扩展 */
:root {
    --primary-gradient: linear-gradient(135deg, var(--tea-color-palette-blue-8) 0%, var(--tea-color-palette-blue-6) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.6;
    color: var(--tea-color-text-primary);
    background: var(--tea-color-bg-page);
    overflow-x: hidden;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: var(--transition-base);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar.scrolled {
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05), 0 8px 30px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.99);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-base);
    letter-spacing: -0.5px;
}

.logo i {
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 82, 217, 0.2));
}

.logo:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(0, 82, 217, 0.3));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    color: var(--tea-color-text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-base);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 82, 217, 0.08) 0%, rgba(0, 82, 217, 0.05) 100%);
    border-radius: 8px;
    opacity: 0;
    transition: var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: var(--transition-base);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2.5rem);
}

.nav-link:hover {
    color: var(--tea-color-palette-blue-8);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--tea-color-palette-blue-8);
    font-weight: 600;
}

.nav-link.active::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(0, 82, 217, 0.12) 0%, rgba(0, 82, 217, 0.08) 100%);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--tea-color-text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition-base);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 82, 217, 0.08);
    color: var(--tea-color-palette-blue-8);
}

/* 英雄区域 */
.hero {
    margin-top: 80px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    color: white;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: white;
    color: var(--tea-color-palette-blue-8);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--tea-color-palette-blue-8);
}

/* 内容区域 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--tea-color-text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--tea-color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--tea-color-bg-primary-default);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid var(--tea-color-border-secondary-default);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--tea-color-palette-blue-8);
}

.card-icon {
    font-size: 3rem;
    color: var(--tea-color-palette-blue-8);
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--tea-color-text-primary);
}

.card-text {
    color: var(--tea-color-text-secondary);
    line-height: 1.8;
}

/* 特色区域 */
.features {
    background: var(--tea-color-bg-secondary-default);
}

.feature-item {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    height: 300px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    box-shadow: var(--shadow-md);
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--tea-color-text-primary);
}

.feature-text {
    color: var(--tea-color-text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* 页脚 */
.footer {
    background: var(--tea-color-palette-gray-13);
    color: var(--tea-color-text-inverse);
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p,
.footer-section a {
    color: var(--tea-color-text-inverse);
    text-decoration: none;
    line-height: 2;
    transition: var(--transition-base);
}

.footer-section a:hover {
    color: var(--tea-color-palette-blue-5);
}

.footer-bottom a {
    transition: var(--transition-base);
}

.footer-bottom a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--tea-color-text-inverse);
    font-size: 0.9rem;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out both;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition-base);
        box-shadow: var(--shadow-lg);
        gap: 0.5rem;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

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

    .hero-content {
        padding: 2rem 1rem;
    }

    .feature-item,
    .feature-item:nth-child(even) {
        flex-direction: column;
    }

    .feature-image {
        width: 100%;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .page-content>.container>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* 页面特定样式 */
.page-header {
    margin-top: 80px;
    padding: 4rem 0;
    background: var(--primary-gradient);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.page-content {
    padding: 4rem 0;
}

.content-block {
    margin-bottom: 3rem;
}

.content-block h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--tea-color-text-primary);
}

.content-block p {
    color: var(--tea-color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--tea-color-text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--tea-color-border-primary-default);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-base);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--tea-color-palette-blue-8);
    box-shadow: 0 0 0 3px rgba(0, 82, 217, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* 新闻列表 */
.news-list {
    display: grid;
    gap: 2rem;
}

.news-item {
    background: var(--tea-color-bg-primary-default);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--tea-color-border-secondary-default);
    transition: var(--transition-base);
}

.news-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: var(--tea-color-palette-blue-8);
}

.news-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--tea-color-text-primary);
}

.news-meta {
    color: var(--tea-color-text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-item p {
    color: var(--tea-color-text-secondary);
    line-height: 1.8;
}