/* ========================================
   文明网络科技静态网站 - 样式表
   科技大气专业风格
   ======================================== */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 科技蓝 */
    --primary-color: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #3385FF;
    
    /* 辅助色 */
    --secondary-color: #00C9A7;
    --accent-color: #FF6B35;
    
    /* 中性色 */
    --dark: #1A1A1A;
    --gray-dark: #333333;
    --gray: #666666;
    --gray-light: #999999;
    --gray-lighter: #CCCCCC;
    --gray-lightest: #F5F7FA;
    --white: #FFFFFF;
    
    /* 字体 */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    
    /* 阴影 */
    --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: all 0.3s ease;
}

body {
    font-family: var(--font-main);
    color: var(--gray-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    padding: 8px 16px;
    border: 1px solid var(--gray-lighter);
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray);
    transition: var(--transition);
}

.lang-switch:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--gray-dark);
    transition: var(--transition);
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    background: linear-gradient(135deg, #F5F7FA 0%, #E8EEF7 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 80px;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--gray);
    font-weight: 500;
}

/* ========================================
   通用区块样式
   ======================================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
}

/* ========================================
   服务卡片
   ======================================== */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-lightest);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.service-desc {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.8;
}

/* ========================================
   优势展示
   ======================================== */
.advantages {
    background: var(--gray-lightest);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.advantage-item {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.advantage-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.advantage-icon {
    font-size: 42px;
    margin-bottom: 20px;
}

.advantage-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.advantage-item p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
}

/* ========================================
   CTA 区域
   ======================================== */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta .btn-large {
    background: var(--white);
    color: var(--primary-color);
}

.cta .btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--dark);
    color: var(--gray-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
}

.footer-column h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 10px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--gray-light);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* ========================================
   返回顶部按钮
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ========================================
   页面头部（内页）
   ======================================== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 140px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 20px;
    opacity: 0.95;
}

/* ========================================
   关于我们页面
   ======================================== */
.about-intro {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 24px;
}

.about-text p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--gray-lightest);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
}

.mission-vision {
    background: var(--gray-lightest);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.mv-card {
    background: var(--white);
    padding: 48px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.mv-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.mv-card h3 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 16px;
}

.mv-card p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.8;
}

.values {
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.value-item {
    text-align: center;
    padding: 32px;
}

.value-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.value-item h3 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 12px;
}

.value-item p {
    font-size: 15px;
    color: var(--gray);
}

.team {
    background: var(--gray-lightest);
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.team-stat .stat-number {
    font-size: 56px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.team-stat .stat-label {
    font-size: 18px;
    color: var(--gray);
    font-weight: 500;
}

/* ========================================
   产品页面
   ======================================== */
.products-detail {
    background: var(--white);
}

.product-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding: 40px 0;
}

.product-item.reverse {
    direction: rtl;
}

.product-item.reverse > * {
    direction: ltr;
}

.product-badge {
    display: inline-block;
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    line-height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.product-content h2 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 16px;
}

.product-content > p {
    font-size: 17px;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.8;
}

.product-features {
    list-style: none;
}

.product-features li {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.7;
}

.product-features strong {
    color: var(--primary-color);
    font-weight: 600;
}

.product-features span {
    color: var(--gray);
}

.product-image .image-placeholder {
    width: 100%;
    height: 400px;
}

/* ========================================
   案例页面
   ======================================== */
.cases-list {
    background: var(--white);
}

.case-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding: 40px;
    background: var(--gray-lightest);
    border-radius: 16px;
}

.case-item.reverse {
    direction: rtl;
}

.case-item.reverse > * {
    direction: ltr;
}

.case-content h3 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 16px;
}

.case-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--white);
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
}

.case-content p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 24px;
}

.case-results {
    list-style: none;
}

.case-results li {
    font-size: 15px;
    color: var(--gray-dark);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.case-results li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.case-image .image-placeholder {
    width: 100%;
    height: 350px;
}

/* ========================================
   新闻页面
   ======================================== */
.news-list {
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-lightest);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-image .image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--gray-lightest);
}

.news-content {
    padding: 24px;
}

.news-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
}

.news-category {
    color: var(--primary-color);
    font-weight: 600;
}

.news-date {
    color: var(--gray-light);
}

.news-content h3 {
    font-size: 19px;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

/* ========================================
   招聘页面
   ======================================== */
.benefits {
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.benefit-item {
    background: var(--gray-lightest);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.benefit-item h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.benefit-item p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
}

.jobs {
    background: var(--gray-lightest);
}

.jobs-list {
    display: grid;
    gap: 24px;
}

.job-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.job-card:hover {
    box-shadow: var(--shadow-md);
}

.job-card h3 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 16px;
}

.job-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--gray);
}

.job-card p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

.job-apply {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.job-apply:hover {
    background: var(--primary-dark);
    transform: translateX(4px);
}

/* ========================================
   联系我们页面
   ======================================== */
.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form h2,
.contact-info-block h2 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-lighter);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.contact-details p,
.contact-details a {
    font-size: 15px;
    color: var(--gray);
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--primary-color);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 44px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content,
    .product-item,
    .case-item,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
    }
    
    .product-item.reverse,
    .case-item.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        gap: 0;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-lightest);
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .services-grid,
    .advantages-grid,
    .values-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats,
    .team-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .image-placeholder {
        height: 250px !important;
        font-size: 64px;
    }
    
    .hero-stats,
    .team-stats {
        grid-template-columns: 1fr;
    }
}
