/* ========================================
   智途网络科技 - 企业官网样式
   设计风格：磨砂亚麻，清新商务
   ======================================== */

/* CSS Variables */
:root {
    /* 配色方案 */
    --canvas-bg: #fcfcfc;
    --sky-wash: #f0f4fe;
    --midnight-blue: #020520;
    --graphite-gray: #14141e;
    --slate-gray: #374151;
    --fog-gray: #696a72;
    --deep-fog: #95959b;
    --steel-gray: #6b7280;
    --signal-blue: #145aff;
    --action-blue: #0f1f3d;
    --emerald-green: #16ca2e;
    --coral-red: #f26052;
    --sky-info: #0099ff;
    --amber-tag: #ffa64d;
    
    /* 渐变 */
    --hero-gradient: radial-gradient(97.8% 181.6% at 53.7% 50%, rgb(20, 20, 30) 0%, rgba(88, 107, 141, 0.8) 100%);
    --blue-gradient: linear-gradient(rgb(59, 130, 246) 0%, rgb(20, 90, 255) 100%);
    
    /* 阴影 */
    --card-shadow: rgba(0, 0, 0, 0.1) 0px 0px 4px -2px;
    --card-shadow-hover: rgba(0, 0, 0, 0.15) 0px 4px 12px -2px;
    --feature-shadow: rgba(0, 0, 0, 0.082) 0px 0.36px 1.81px -1.42px, 
                      rgba(0, 0, 0, 0.07) 0px 1.37px 6.87px -2.83px, 
                      rgba(0, 0, 0, 0.016) 0px 6px 30px -4.25px;
    
    /* 圆角 */
    --radius-pill: 100px;
    --radius-card: 8px;
    --radius-badge: 4px;
    --radius-image: 16px;
    --radius-input: 12px;
    --radius-modal: 32px;
    --radius-button: 12px;
    --radius-large-card: 40px;
    
    /* 间距 */
    --section-gap: 80px;
    --element-gap: 12px;
    --max-width: 1200px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.43;
    color: var(--slate-gray);
    background-color: var(--canvas-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--midnight-blue);
    font-weight: 600;
    line-height: 1.25;
}

h1 {
    font-size: 56px;
    letter-spacing: -1.51px;
}

h2 {
    font-size: 40px;
    letter-spacing: -0.76px;
}

h3 {
    font-size: 22px;
    letter-spacing: -0.22px;
}

h4 {
    font-size: 18px;
    letter-spacing: -0.16px;
}

p {
    color: var(--slate-gray);
    line-height: 1.6;
}

a {
    color: var(--action-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--signal-blue);
}

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

/* Section */
.section {
    padding: var(--section-gap) 0;
}

.section-alt {
    background-color: var(--sky-wash);
}

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

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--fog-gray);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: rgba(252, 252, 252, 0.95);
    backdrop-filter: blur(2px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--midnight-blue);
}

.navbar-logo img {
    width: 40px;
    height: 40px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--slate-gray);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.navbar-menu a:hover {
    background-color: var(--sky-wash);
    color: var(--midnight-blue);
}

.navbar-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--blue-gradient);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 90, 255, 0.3);
    color: #ffffff;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.8);
    color: var(--action-blue);
    border: 1px solid var(--action-blue);
}

.btn-outline:hover {
    background: var(--sky-wash);
    border-color: var(--midnight-blue);
    color: var(--midnight-blue);
}

.btn-ghost {
    background: var(--canvas-bg);
    color: var(--signal-blue);
    border: 1px solid rgba(20, 90, 255, 0.3);
    border-radius: var(--radius-pill);
    padding: 14px 32px;
}

.btn-ghost:hover {
    background: var(--sky-wash);
    border-color: var(--signal-blue);
}

/* Hero Section */
.hero {
    padding: 160px 0 120px;
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(88, 107, 141, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    color: #ffffff;
    font-size: 56px;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Cards */
.card {
    background: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
    padding: 24px;
    transition: all 0.3s ease;
}

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

.card-large {
    border-radius: var(--radius-large-card);
    padding: 52px 72px;
    box-shadow: var(--feature-shadow);
}

/* Grid */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Product Cards */
.product-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.product-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--sky-wash);
    border-radius: var(--radius-image);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--signal-blue);
}

.product-card h3 {
    margin-bottom: 12px;
}

.product-card p {
    color: var(--fog-gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.product-link {
    color: var(--action-blue);
    font-weight: 500;
    font-size: 14px;
}

.product-link:hover {
    color: var(--signal-blue);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--slate-gray);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 40px;
    font-weight: 600;
    color: var(--signal-blue);
    letter-spacing: -0.76px;
}

.stat-label {
    font-size: 14px;
    color: var(--fog-gray);
    margin-top: 4px;
}

.about-image {
    border-radius: var(--radius-large-card);
    overflow: hidden;
    box-shadow: var(--feature-shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background: #ffffff;
    border-radius: var(--radius-large-card);
    padding: 40px;
    box-shadow: var(--feature-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--graphite-gray);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    font-size: 14px;
    border: 1px solid #cfcfcf;
    border-radius: var(--radius-input);
    background: #ffffff;
    color: var(--graphite-gray);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sky-info);
    box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.1);
}

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

.contact-info {
    padding: 20px 0;
}

.contact-info h3 {
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--sky-wash);
    border-radius: var(--radius-input);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--signal-blue);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--fog-gray);
    font-size: 14px;
}

/* Footer */
.footer {
    background: var(--midnight-blue);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

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

.footer-brand h3 {
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Page Header */
.page-header {
    padding: 140px 0 60px;
    background: var(--sky-wash);
    text-align: center;
}

.page-header h1 {
    font-size: 40px;
    margin-bottom: 16px;
}

.page-header p {
    color: var(--fog-gray);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--fog-gray);
}

.breadcrumb a:hover {
    color: var(--signal-blue);
}

.breadcrumb span {
    color: var(--deep-fog);
}

/* News Cards */
.news-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.news-image {
    width: 100%;
    height: 200px;
    background: var(--sky-wash);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--signal-blue);
    font-size: 48px;
}

.news-content {
    padding: 24px;
}

.news-date {
    font-size: 12px;
    color: var(--deep-fog);
    margin-bottom: 8px;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card p {
    color: var(--fog-gray);
    font-size: 14px;
    margin-bottom: 16px;
}

/* Case Cards */
.case-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.case-image {
    width: 100%;
    height: 240px;
    background: var(--sky-wash);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--signal-blue);
    font-size: 64px;
}

.case-content {
    padding: 24px;
}

.case-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(20, 90, 255, 0.1);
    color: var(--signal-blue);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-badge);
    margin-bottom: 12px;
}

.case-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.case-card p {
    color: var(--fog-gray);
    font-size: 14px;
}

/* Detail Page */
.detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.detail-content h2 {
    font-size: 32px;
    margin: 40px 0 20px;
}

.detail-content h3 {
    font-size: 24px;
    margin: 32px 0 16px;
}

.detail-content p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.8;
}

.detail-content ul,
.detail-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.detail-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 32px;
}

.detail-meta span {
    font-size: 14px;
    color: var(--fog-gray);
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--action-blue);
    font-weight: 500;
    margin-bottom: 32px;
}

.back-button:hover {
    color: var(--signal-blue);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--midnight-blue);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 60px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--canvas-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--card-shadow);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar-cta {
        display: none;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .card-large {
        padding: 32px 24px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}
