/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066ff;
    --primary-dark: #0052cc;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --hero-grid-size: 40px;
    --hero-grid-line: rgba(15, 23, 42, 0.055);
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector {
    display: flex;
    gap: 12px;
}

.lang {
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.3s ease;
}

.lang:hover,
.lang.active {
    color: var(--primary-color);
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: var(--primary-color);
}

/* 主要内容区域 */
.main-content {
    margin-top: 70px;
}

/* Hero Section：整区连续网格 + 横向光晕，右侧仅叠加结构线稿（非输入框） */
.hero-section {
    --grid: var(--hero-grid-size);
    background-color: #eef1f6;
    background-image:
        linear-gradient(to right, var(--hero-grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--hero-grid-line) 1px, transparent 1px);
    background-size: var(--grid) var(--grid);
    padding: 88px 40px 96px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        rgba(255, 255, 255, 0.88) 0%,
        rgba(255, 255, 255, 0.45) 40%,
        rgba(255, 255, 255, 0.08) 52%,
        rgba(0, 102, 255, 0.045) 100%
    );
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 85% 65% at 86% 40%, rgba(0, 102, 255, 0.075), transparent 58%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 56px);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.5s ease;
    position: relative;
}

.hero-title {
    font-size: clamp(2rem, 4.2vw, 2.625rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
    line-height: 1.22;
    letter-spacing: -0.035em;
    font-feature-settings: 'kern' 1;
}

.hero-subtitle {
    font-size: 17px;
    color: #475569;
    margin-bottom: 28px;
    font-weight: 400;
    line-height: 1.65;
    max-width: 34em;
    letter-spacing: 0.01em;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 24px;
    font-size: 14px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 16px 48px;
    font-size: 18px;
}

.hero-image {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    position: relative;
    min-height: 300px;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 460px;
    min-height: 300px;
    height: clamp(280px, 32vw, 380px);
    margin: 0 0 0 auto;
    border: none;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-ornament {
    width: 100%;
    height: 100%;
    max-height: 380px;
    display: block;
    opacity: 0.95;
}

/* 内容区域 */
.content-section {
    padding: 100px 40px;
    background-color: var(--bg-white);
}

.content-section:nth-child(even) {
    background-color: var(--bg-light);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 60px;
    text-align: center;
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.product-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: var(--primary-dark);
}

/* 直招页面 */
.recruitment-content {
    max-width: 1000px;
    margin: 0 auto;
}

.recruitment-intro {
    text-align: center;
    margin-bottom: 60px;
}

.recruitment-intro h3 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.recruitment-intro p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.job-item {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.job-item:hover {
    box-shadow: var(--shadow-hover);
}

.job-item h4 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.job-location {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.job-desc {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

a.job-item.job-item--link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

a.job-item.job-item--link .job-desc {
    margin-bottom: 12px;
}

a.job-item.job-item--link:hover h4 {
    color: var(--primary-color);
}

a.job-item.job-item--link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.job-item-more {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
}

a.job-item.job-item--link:hover .job-item-more {
    text-decoration: underline;
}

/* 子页面（人员招募等） */
.subpage-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 96px 40px 80px;
}

.subpage-back {
    margin-bottom: 28px;
}

.subpage-back a {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
}

.subpage-back a:hover {
    text-decoration: underline;
}

.subpage-title {
    font-size: clamp(1.75rem, 4vw, 2rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.subpage-lead {
    font-size: 17px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.subpage-section {
    margin-bottom: 36px;
}

.subpage-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.subpage-section p,
.subpage-section li {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.75;
}

.subpage-section ul {
    margin: 12px 0 0 1.25em;
}

/* 直聊页面 */
.chat-content {
    max-width: 1000px;
    margin: 0 auto;
}

.chat-intro {
    text-align: center;
    margin-bottom: 60px;
}

.chat-intro h3 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.chat-intro p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

.chat-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-item {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.chat-action {
    text-align: center;
}

/* 最新动态 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 102, 255, 0.05) 100%);
}

.news-content {
    padding: 30px;
}

.news-date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.news-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 40px 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
        height: 60px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .nav-list {
        gap: 20px;
    }

    .nav-link {
        font-size: 14px;
    }

    .language-selector {
        display: none;
    }

    .hero-section {
        padding: 48px 20px 56px;
        min-height: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }

    .hero-image {
        justify-content: center;
        min-height: 0;
    }

    .hero-visual {
        max-width: 100%;
        height: 260px;
        min-height: 260px;
        margin: 0 auto;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .subpage-main {
        padding: 72px 20px 56px;
    }

    .content-section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 40px 20px 20px;
    }
}


