/* ============================================================
   style.css - 公司官网全局样式
   主色调：蓝色 #2563EB (blue-600) + 白色 + 浅灰辅助
   设计风格：简洁科技风，无花哨动画，保证加载速度
   ============================================================ */

/* ----- 自定义 CSS 变量（配合 Tailwind 使用）----- */
:root {
    --color-primary: #2563EB;
    --color-primary-dark: #1D4ED8;
    --color-primary-light: #DBEAFE;
    --color-text: #1F2937;
    --color-text-secondary: #6B7280;
    --color-bg-light: #F9FAFB;
    --color-border: #E5E7EB;
}

/* ----- 全局重置与基础 ----- */
html {
    scroll-behavior: smooth;
}

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

/* ----- 导航栏 ----- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow 0.3s ease;
}

/* 导航栏滚动后添加阴影 */
.navbar.scrolled {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
                0 1px 2px -1px rgba(0, 0, 0, 0.06);
}

/* Logo 占位区域 */
.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 40px;
    border: 2px dashed #D1D5DB;
    border-radius: 6px;
    color: #9CA3AF;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.logo-placeholder:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* 导航链接 */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-link:hover {
    color: var(--color-primary);
}
/* 当前页高亮 */
.nav-link.active {
    color: var(--color-primary);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* ----- 汉堡菜单按钮 ----- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s;
}
.hamburger-btn:hover {
    background-color: #F3F4F6;
}
.hamburger-btn .bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger-btn .bar + .bar {
    margin-top: 5px;
}
/* 汉堡菜单打开状态 */
.hamburger-btn.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ----- 移动端菜单 ----- */
.mobile-menu {
    display: none;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.mobile-menu.open {
    display: block;
}
.mobile-menu .mobile-nav-link {
    display: block;
    padding: 0.875rem 1.5rem;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #F3F4F6;
    transition: all 0.2s;
}
.mobile-menu .mobile-nav-link:hover,
.mobile-menu .mobile-nav-link.active {
    color: var(--color-primary);
    background-color: var(--color-primary-light);
}

/* ----- Banner 区域 ----- */
.banner-section {
    background: linear-gradient(160deg, #0F172A 0%, #1E3A8A 25%, #1D4ED8 50%, #2563EB 100%);
    padding: 6rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 网格纹理覆盖层 — 科技感图案 */
.banner-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    background-image:
        linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 70%);
}

/* 光晕装饰 */
.banner-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.3;
}
.banner-glow--left {
    top: -200px;
    left: -150px;
    background: radial-gradient(circle, #3B82F6 0%, transparent 70%);
}
.banner-glow--right {
    bottom: -200px;
    right: -150px;
    background: radial-gradient(circle, #6366F1 0%, transparent 70%);
}

/* Banner 范围标签 */
.banner-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #E0E7FF;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.25s;
}
.banner-tag:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* ----- 按钮样式 ----- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: #FFFFFF;
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 140px;
}
.btn-primary:hover {
    background-color: #F0F5FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: transparent;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    min-width: 140px;
}
.btn-outline:hover {
    border-color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ----- 卡片样式 ----- */
.advantage-card,
.service-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}
.advantage-card:hover,
.service-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* 卡片图标容器 */
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    margin-bottom: 1rem;
}
.card-icon svg {
    width: 28px;
    height: 28px;
}

/* ----- 章节标题 ----- */
.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 3rem;
}

/* ----- 公司简介区域背景 ----- */
.bg-intro {
    background-color: #F8FAFC;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
    position: relative;
}
.bg-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #CBD5E1, transparent);
}

/* ----- 公司简介文字 ----- */
.intro-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #475569;
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}
.intro-text p {
    text-indent: 2em;
    margin-bottom: 1em;
}
.intro-text strong {
    color: #1E40AF;
    font-weight: 600;
}

/* ----- 联系信息卡片 ----- */
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.contact-info-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* 表单卡片容器 */
.form-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem 2rem 2.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* 表单标签 */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

/* ----- 表单样式 ----- */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--color-text);
    background-color: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}
.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-input.error {
    border-color: #EF4444;
}
.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
/* 移动端输入框增大，方便手指操作 */
.form-textarea {
    min-height: 140px;
    resize: vertical;
}

/* 错误提示文字 */
.error-message {
    color: #EF4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}
.error-message.visible {
    display: block;
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    padding: 0.875rem 2rem;
    background-color: var(--color-primary);
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-submit:hover {
    background-color: var(--color-primary-dark);
}
.btn-submit:active {
    transform: scale(0.98);
}

/* ----- 页脚 ----- */
.site-footer {
    background-color: #111827;
    color: #D1D5DB;
    padding: 3rem 1.5rem 1.5rem;
}
.footer-divider {
    border: none;
    border-top: 1px solid #374151;
    margin: 1.5rem 0;
}
.footer-link {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover {
    color: #FFFFFF;
}

/* ----- Toast 提示弹窗 ----- */
.toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.2s ease;
}
.toast-box {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 380px;
    width: 90%;
    animation: scaleIn 0.25s ease;
}
.toast-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: #10B981;
}
.toast-message {
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.toast-close {
    padding: 0.625rem 2rem;
    background-color: var(--color-primary);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.toast-close:hover {
    background-color: var(--color-primary-dark);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ----- 响应式：移动端（< 768px）----- */
@media (max-width: 767px) {

    /* 导航 */
    .nav-links-desktop {
        display: none !important;
    }
    .hamburger-btn {
        display: flex;
    }

    /* Banner */
    .banner-section {
        padding: 3rem 1.25rem;
        min-height: auto;
    }
    .banner-glow {
        width: 250px;
        height: 250px;
    }
    .banner-tag {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    /* 卡片 */
    .advantage-card,
    .service-card {
        padding: 1.5rem 1.25rem;
    }

    /* 章节标题 */
    .section-title {
        font-size: 1.5rem;
    }
    .section-subtitle {
        font-size: 0.95rem;
    }

    /* 按钮适配手指操作 */
    .btn-primary,
    .btn-outline,
    .btn-submit {
        padding: 0.875rem 1.5rem;
        font-size: 1.05rem;
        min-height: 48px;
    }

    /* 表单输入 */
    .form-input {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        min-height: 48px;
    }
    /* 表单卡片 */
    .form-card {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    /* 页脚 */
    .site-footer {
        text-align: center;
    }
    .site-footer .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
}

/* ----- 响应式：平板端（768px - 1023px）----- */
@media (min-width: 768px) and (max-width: 1023px) {
    .nav-links-desktop {
        gap: 0.25rem;
    }
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    .banner-section h1 {
        font-size: 2rem !important;
    }
}

/* ----- 响应式：PC端（≥ 1024px）----- */
@media (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
    }
}
