:root {
    --bg-color: #0A1929; /* Deep Space Blue */
    --text-color: #E8E8E8; /* Tech Silver */
    --accent-color: #C8102E; /* Chinese Red */
    --secondary-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(232, 232, 232, 0.2);

    /* 使用系统自带的中文字体栈 */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
    --font-serif: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "STHeiti", "SimHei", "黑体", serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

main {
    display: block;
    position: relative;
    width: 100%;
    z-index: 1; /* Ensure it sits above the fixed canvas if needed */
}

/* Canvas Background */
#digital-ink-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Slightly darker to make content pop */
    opacity: 1; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
.site-header {
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(10, 25, 41, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(232, 232, 232, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    /* Optional: Add a subtle glow if it fits the style */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.btn-highlight {
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1.2rem;
    color: var(--accent-color) !important;
    transition: all 0.3s ease !important;
}

.btn-highlight:hover {
    background-color: var(--accent-color);
    color: white !important;
    box-shadow: 0 0 15px rgba(200, 16, 46, 0.4);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.accent-red {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(232, 232, 232, 0.8);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 0.9rem 2.2rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-radius: 2px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 20px rgba(200, 16, 46, 0.3);
}

.btn-primary:hover {
    background-color: #a00d25;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(200, 16, 46, 0.5);
}

.btn-secondary {
    background-color: transparent;
    border-color: rgba(232, 232, 232, 0.3);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: rgba(232, 232, 232, 0.05);
    border-color: var(--text-color);
    transform: translateY(-2px);
}

/* --- Tech Philosophy Section --- */
.tech-philosophy-section {
    padding: 4rem 0;
    background: rgba(10, 25, 41, 0.8);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.phil-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.phil-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

.phil-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.phil-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.phil-item p {
    font-size: 0.85rem;
    color: rgba(232, 232, 232, 0.6);
    line-height: 1.5;
}

/* Services Section - Grid */
.services-section {
    padding: 8rem 0;
    /* Glassmorphism background for the section to let the moving code show through slightly */
    background: linear-gradient(to bottom, rgba(10, 25, 41, 0.9), rgba(13, 31, 51, 0.98));
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.divider-line {
    height: 1px;
    width: 100px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 1rem auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    transform: rotate(45deg);
    display: block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 2rem;
    background: rgba(255,255,255,0.02);
    border-radius: 50%; /* Rounded for the new fluid theme */
}

.service-card h3 {
    margin-bottom: 1rem;
    font-weight: 500;
    color: #fff;
}

.service-card p {
    font-size: 0.9rem;
    color: rgba(232, 232, 232, 0.6);
}

/* About Section */
.about-section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
    /* Darker background to separate from Products */
    background: linear-gradient(to bottom, #0d1f33, var(--bg-color));
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(200, 16, 46, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(200, 16, 46, 0.3);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border-radius: 20px;
}

.about-text h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-text p {
    color: rgba(232, 232, 232, 0.7);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.stats-grid {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-serif);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(232, 232, 232, 0.5);
}

/* Abstract Circle Visual */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

.circle-visual {
    position: relative;
    width: 300px;
    height: 300px;
}

.circle-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(232, 232, 232, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.c1 { width: 100%; height: 100%; animation: orbit 20s linear infinite; border-top-color: var(--accent-color); }
.c2 { width: 70%; height: 70%; animation: orbit 15s linear infinite reverse; border-bottom-color: var(--text-color); }
.c3 { width: 40%; height: 40%; animation: orbit 10s linear infinite; border-left-color: var(--accent-color); }

.center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--text-color);
    opacity: 0.8;
}

@keyframes orbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- Workflow Section --- */
.workflow-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #0d1f33, #0A1929);
    position: relative;
    z-index: 2;
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    position: relative;
}

/* Connecting line line */
.workflow-steps::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    z-index: 0;
    opacity: 0.3;
}

.step-card {
    background: #0A1929;
    border: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    text-align: center;
    width: 22%;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.step-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    font-family: var(--font-serif);
    margin-bottom: -1rem;
    display: block;
}

.step-card h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.step-card p {
    font-size: 0.85rem;
    color: rgba(232, 232, 232, 0.6);
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--border-color);
    font-weight: 300;
}

/* Cases Section */
.cases-section {
    padding: 8rem 0;
    background-color: rgba(10, 25, 41, 0.6);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* --- Expanded Cases Gallery --- */
.cases-gallery.expanded-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 220px);
    gap: 1.5rem;
    position: relative;
}

.case-item {
    background-color: #1e3a5f; /* Fallback */
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

/* 12个案例的渐变背景 */
.case-item:nth-child(1) { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); }
.case-item:nth-child(2) { background: linear-gradient(135deg, #373b44, #4286f4); }
.case-item:nth-child(3) { background: linear-gradient(135deg, #2b5876, #4e4376); }
.case-item:nth-child(4) { background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d); }
.case-item:nth-child(5) { background: linear-gradient(135deg, #141E30, #243B55); }
.case-item:nth-child(6) { background: linear-gradient(135deg, #0F2027, #78ffd6); }
.case-item:nth-child(7) { background: linear-gradient(135deg, #232526, #414345); }
.case-item:nth-child(8) { background: linear-gradient(135deg, #1D4350, #A43931); }
.case-item:nth-child(9) { background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); }
.case-item:nth-child(10) { background: linear-gradient(135deg, #003973, #E5E5BE); }
.case-item:nth-child(11) { background: linear-gradient(135deg, #1F1C2C, #928DAB); }
.case-item:nth-child(12) { background: linear-gradient(135deg, #0b486b, #f56217); }

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.case-item:hover {
    transform: scale(0.98);
    border-color: var(--accent-color);
}

.case-item:hover .case-overlay {
    transform: translateY(0);
    opacity: 1;
}

.case-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    margin-top: 0.5rem;
}

/* --- News Section --- */
.news-section {
    padding: 6rem 0 4rem 0;
    background-color: var(--bg-color);
    position: relative;
    z-index: 2;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

.news-date {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.news-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.news-date .month {
    font-size: 0.9rem;
    color: rgba(232, 232, 232, 0.6);
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    min-height: 3rem; /* Align titles */
}

.news-content p {
    font-size: 0.9rem;
    color: rgba(232, 232, 232, 0.5);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Contact Section - CLEANED AND FIXED */
.contact-section {
    background: linear-gradient(to top, #0A1929, #0f2538);
    padding: 24rem 0 8rem 0;
    position: relative;
    z-index: 2;
}

/* Flexbox Layout for Centering */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.contact-info {
    max-width: 1000px;
    width: 100%;
}

.contact-info h2 {
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.3;
}

.contact-info p {
    font-size: 1.1rem;
    color: rgba(232, 232, 232, 0.7);
    margin-bottom: 4rem; /* Push the list down */
}

.contact-list {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
    width: 100%;
}

.contact-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 250px;
    flex: 1;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.contact-list li .details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-list li strong {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.contact-list li .details p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: rgba(232, 232, 232, 0.7);
}

.contact-list li:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

.contact-list .icon {
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

/* --- Partners Section --- */
.partners-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-color), #0d1f33);
    position: relative;
    z-index: 2;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.partner-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.partner-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.partner-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.partner-desc {
    font-size: 0.8rem;
    color: rgba(232, 232, 232, 0.5);
}

.partner-item:hover .partner-name {
    color: var(--accent-color);
}

/* Footer */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(232, 232, 232, 0.4);
    background-color: #07121d;
    position: relative;
    z-index: 2;
}

.footer-seo {
    font-size: 0.75rem;
    color: rgba(232, 232, 232, 0.25);
    margin-top: 0.5rem;
}

/* Responsive Updates */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        order: -1;
        height: 300px;
    }

    .cases-gallery.expanded-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .case-item {
        height: 250px;
    }

    .philosophy-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .workflow-steps {
        flex-direction: column;
        gap: 2rem;
    }
    
    .workflow-steps::before {
        width: 1px;
        height: 80%;
        top: 10%;
        left: 50%;
    }
    
    .step-card {
        width: 80%;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Partners Mobile */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .partner-item {
        padding: 1.5rem 1rem;
        min-height: 100px;
    }

    .partner-name {
        font-size: 1.1rem;
    }

    /* Contact Mobile */
    .contact-list {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-list li {
        width: 100%;
    }
}