/* ========================================
   资创通企业官网 - 全局样式
   ======================================== */

/* CSS变量定义 */
:root {
    --primary-color: #1a6fb5;
    --primary-light: #2b8dd9;
    --primary-dark: #0d4a7c;
    --secondary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg-color: #f8f9fa;
    --white: #fff;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-medium: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-heavy: 0 8px 32px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --container-max: 1200px;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* 容器 */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   导航栏
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: box-shadow var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-medium);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-color);
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

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

/* 移动端菜单按钮 */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: all var(--transition-fast);
}

/* ========================================
   Hero 首屏
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #1a6fb5 0%, #0d4a7c 50%, #2c3e50 100%);
    color: var(--white);
    padding: var(--header-height) 24px 0;
    overflow: hidden;
}

.hero-bg {
    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.03'%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");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0.95;
}

.hero-desc {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.85;
}

.hero-slogan {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 32px;
    border-radius: 50px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slogan-text {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.9;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

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

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

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

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

/* ========================================
   通用区块样式
   ======================================== */
.section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--secondary-color);
    margin-bottom: 16px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ========================================
   特色区块
   ======================================== */
.features {
    background: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--white);
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.feature-icon svg {
    width: 36px;
    height: 36px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   关于我们
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

.about-content > div {
    padding: 32px;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.about-content h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 600;
}

.about-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 12px;
}

.mission-quote {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-top: 8px;
}

.mission-quote p {
    color: var(--white);
    font-size: 1.05rem;
    font-style: italic;
    margin: 0;
}

/* 痛点 */
.pain-points h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 32px;
    text-align: center;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.pain-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    border-top: 3px solid #e74c3c;
    transition: transform var(--transition-normal);
}

.pain-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.pain-card h4 {
    font-size: 1.2rem;
    color: #e74c3c;
    margin-bottom: 16px;
}

.pain-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   服务项目
   ======================================== */
.services {
    background: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-heavy);
}

.service-card.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.service-level {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.service-target {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.service-card ul {
    padding-left: 0;
}

.service-card ul li {
    padding: 8px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ========================================
   解决方案
   ======================================== */
.solution-item {
    margin-bottom: 80px;
}

.solution-header {
    text-align: center;
    margin-bottom: 40px;
}

.solution-header h3 {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.solution-header p {
    color: var(--primary-color);
    font-size: 1rem;
}

/* 解决方案表格 */
.solution-table {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.8fr;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.table-row.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    font-weight: 600;
    padding: 16px 24px;
}

.table-row .col:first-child {
    font-weight: 600;
    color: var(--secondary-color);
}

.table-row .col:nth-child(2) {
    color: var(--text-muted);
}

.table-row .col:nth-child(3) {
    color: var(--text-color);
    line-height: 1.6;
}

/* 解决方案特性 */
.solution-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-box {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    border-top: 3px solid var(--primary-color);
    transition: transform var(--transition-normal);
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.feature-box h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.feature-box p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 行业聚焦 */
.industry-focus {
    margin-top: 60px;
    padding: 48px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fd 100%);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.industry-focus h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.industry-focus > p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.industry-focus ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.industry-focus ul li {
    padding: 12px 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-size: 0.95rem;
    position: relative;
    padding-left: 40px;
}

.industry-focus ul li::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* ========================================
   服务流程
   ======================================== */
.process {
    background: var(--bg-color);
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 40px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 0 16px;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(26, 111, 181, 0.3);
}

.process-step h4 {
    font-size: 1.05rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.process-note {
    text-align: center;
    margin-top: 60px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    color: var(--text-light);
    font-style: italic;
}

/* ========================================
   联系我们
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h3,
.contact-cta h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 28px;
}

.info-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.info-item .label {
    width: 100px;
    font-weight: 600;
    color: var(--text-color);
    flex-shrink: 0;
}

.info-item .value {
    color: var(--text-light);
    flex: 1;
}

.contact-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
}

.contact-cta h3 {
    color: var(--white);
}

.contact-cta p {
    margin-bottom: 32px;
    line-height: 1.7;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 12px 28px;
    font-size: 0.95rem;
}

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

.cta-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.cta-buttons .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

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

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

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

.footer-brand img {
    height: 48px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--white);
}

.footer-contact p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .solution-features {
        grid-template-columns: 1fr;
    }
    
    .table-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .table-row.header {
        display: none;
    }
    
    .table-row .col:first-child {
        font-size: 1.1rem;
        color: var(--primary-color);
    }
    
    .table-row .col:nth-child(2) {
        padding-left: 16px;
        border-left: 3px solid #e0e0e0;
    }
    
    .table-row .col:nth-child(2)::before {
        content: '传统：';
        color: var(--text-muted);
    }
    
    .table-row .col:nth-child(3) {
        padding-left: 16px;
        border-left: 3px solid var(--primary-color);
    }
    
    .table-row .col:nth-child(3)::before {
        content: 'AI赋能：';
        color: var(--primary-color);
        font-weight: 600;
    }
    
    .pain-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-medium);
        gap: 16px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-slogan {
        padding: 12px 20px;
    }
    
    .slogan-text {
        font-size: 0.9rem;
    }
    
    .process-timeline {
        flex-direction: column;
        gap: 32px;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .process-step {
        padding: 0;
    }
    
    .industry-focus ul {
        grid-template-columns: 1fr;
    }
    
    .solution-table {
        font-size: 0.9rem;
    }
    
    .contact-cta {
        padding: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + 20px);
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .feature-card,
    .service-card,
    .pain-card,
    .feature-box {
        padding: 28px 20px;
    }
}

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

.feature-card,
.service-card,
.pain-card,
.feature-box,
.process-step,
.solution-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.pain-card:nth-child(1) { animation-delay: 0.1s; }
.pain-card:nth-child(2) { animation-delay: 0.2s; }

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }
.process-step:nth-child(5) { animation-delay: 0.5s; }
.process-step:nth-child(6) { animation-delay: 0.6s; }

/* 滚动显示效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
