/* ========================================
   北京天奇云网络科技有限公司 - 企业官网样式
   设计风格：清新商务 / 商务蓝
   ======================================== */

/* CSS Variables */
:root {
    /* 色彩系统 - 蓝色商务风格 */
    --canvas-bg: #f5f8ff;
    --sky-wash: #e8f0fe;
    --midnight-blue: #0a1628;
    --graphite-gray: #1a2744;
    --slate-gray: #2d4a7a;
    --fog-gray: #5a7bb5;
    --deep-fog: #8aa3cc;
    --steel-gray: #6b8cc0;
    --signal-blue: #1a6dff;
    --action-blue: #0d3b8e;
    --emerald-green: #16ca2e;
    --coral-red: #f26052;
    --sky-info: #0099ff;
    --amber-tag: #ffa64d;
    
    /* 渐变 */
    --hero-gradient: linear-gradient(135deg, #0a1628 0%, #1a3a6e 40%, #1a6dff 100%);
    --blue-gradient: linear-gradient(135deg, #1a6dff 0%, #0d47a1 100%);
    
    /* 阴影 */
    --shadow-card: rgba(0, 0, 0, 0.1) 0px 0px 4px -2px;
    --shadow-elevated: rgba(0, 0, 0, 0.25) 0px 0px 4px -2px;
    --shadow-feature: 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;
    --shadow-focus: rgba(20, 90, 255, 0.1) 0px 0px 50px -28px, 
                    rgba(0, 0, 0, 0.18) 0px 0px 3px -1px;
    
    /* 圆角 */
    --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', sans-serif;
    font-size: 14px;
    line-height: 1.43;
    color: var(--graphite-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;
}

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

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

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

h4 {
    font-size: 18px;
    line-height: 1.4;
    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(245, 248, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(26, 109, 255, 0.1);
}

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

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

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

.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: 400;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

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

.navbar-menu a.active {
    color: var(--midnight-blue);
    font-weight: 500;
}

.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: 500;
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.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-primary {
    background: var(--blue-gradient);
    color: #ffffff;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-focus);
}

.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;
    font-size: 16px;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    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-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.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;
    margin-bottom: 24px;
    font-size: 56px;
}

.hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sky-wash);
    border-radius: var(--radius-input);
    margin-bottom: 16px;
    color: var(--signal-blue);
    font-size: 20px;
}

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

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

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--action-blue);
}

.card-link:hover {
    gap: 10px;
}

/* 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);
}

/* 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;
    font-size: 16px;
}

.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-image);
    overflow: hidden;
    box-shadow: var(--shadow-feature);
}

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

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

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

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

.news-card-content {
    padding: 20px;
}

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

.news-card h4 {
    margin-bottom: 12px;
    font-size: 16px;
}

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

/* Cases Section */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

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

.case-card-logo {
    width: 60px;
    height: 60px;
    background: var(--sky-wash);
    border-radius: var(--radius-input);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
    color: var(--signal-blue);
}

.case-card h4 {
    margin-bottom: 8px;
}

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

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 40px;
}

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

.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;
    font-family: inherit;
}

.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 input::placeholder,
.form-group textarea::placeholder {
    color: var(--deep-fog);
}

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

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

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

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

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

.contact-info-text h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

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

/* 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;
    font-weight: 500;
    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);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.footer-copyright {
    display: block;
    white-space: nowrap;
}

.footer-beian {
    white-space: nowrap;
}

.beian-icp,
.beian-police {
    white-space: nowrap;
}

.beian-separator {
    white-space: nowrap;
}

.beian-separator::before {
    content: " ";
}

.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 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 {
    font-size: 16px;
    color: var(--fog-gray);
    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);
}

.breadcrumb .current {
    color: var(--graphite-gray);
}

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

.detail-content h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--fog-gray);
}

.detail-body {
    font-size: 16px;
    line-height: 1.8;
}

.detail-body p {
    margin-bottom: 20px;
}

.detail-body h3 {
    font-size: 24px;
    margin: 40px 0 16px;
}

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

.detail-body li {
    margin-bottom: 8px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--sky-wash);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--signal-blue);
    border-radius: 50%;
    border: 3px solid var(--canvas-bg);
    box-shadow: 0 0 0 2px var(--signal-blue);
}

.timeline-year {
    font-size: 14px;
    font-weight: 600;
    color: var(--signal-blue);
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--graphite-gray);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--fog-gray);
}

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

.team-card {
    text-align: center;
    background: #ffffff;
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: var(--sky-wash);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--signal-blue);
}

.team-card h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.team-card .role {
    font-size: 13px;
    color: var(--fog-gray);
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    text-align: center;
    padding: 32px 24px;
    background: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.value-icon {
    width: 56px;
    height: 56px;
    background: var(--sky-wash);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--signal-blue);
}

.value-card h4 {
    margin-bottom: 12px;
}

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

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

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

@media (max-width: 768px) {
    :root {
        --section-gap: 60px;
    }
    
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--canvas-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-elevated);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar-cta {
        display: none;
    }
    
    .hero {
        padding: 120px 24px 60px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid,
    .news-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom p {
        white-space: normal;
    }
    
    .footer-copyright,
    .beian-icp,
    .beian-police {
        display: block;
        white-space: normal;
        line-height: 1.8;
    }
    
    .beian-separator {
        display: none !important;
    }
    
    .card-large {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 32px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

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

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

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

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

/* 社交按钮 */
.social-btn {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    margin: 0 6px;
}
.social-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
    transform: scale(1.1);
}

/* 二维码弹窗 */
.qrcode-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qrcode-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}
.qrcode-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: qrcodeFadeIn 0.3s ease;
}
@keyframes qrcodeFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.qrcode-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.qrcode-modal-close:hover {
    color: #333;
}
.qrcode-modal-content h4 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #333;
}
.qrcode-modal-content img {
    width: 100%;
    max-width: 260px;
    border-radius: 8px;
}
