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

:root {
    --primary: #c0392b;
    --primary-dark: #a93226;
    --primary-light: #e74c3c;
    --accent: #f39c12;
    --bg-dark: #0d0d0d;
    --bg-section: #111;
    --bg-card: #1a1a1a;
    --text: #e0e0e0;
    --text-light: #999;
    --text-muted: #666;
    --border: #2a2a2a;
    --transition: 0.3s ease;
    --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --max-width: 1200px;
    --header-h: 70px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 1;
    min-width: 0;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.logo-text {
    font-size: clamp(12px, 2vw, 16px);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    color: var(--text-light);
    transition: color var(--transition);
    position: relative;
    padding: 4px 0;
}

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

.nav-link:hover, .nav-link.active {
    color: #fff;
}

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

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(192,57,43,0.15) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(192,57,43,0.08) 0%, transparent 70%),
                radial-gradient(ellipse at 30% 80%, rgba(243,156,18,0.05) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: var(--header-h);
}

.hero-suptitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary-light);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-light);
    max-width: 540px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(192,57,43,0.4);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ===== Stats ===== */
.stats {
    padding: 60px 0;
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.stat-item {
    text-align: center;
    padding: 24px;
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-light);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 16px;
}

/* ===== About ===== */
.about { background: var(--bg-section); }

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

.about-text p {
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.9;
}

.about-honors {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.honor-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    font-size: 14px;
    color: var(--text-light);
}

.honor-icon { font-size: 18px; }

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #1a1a2e, #2d1b69);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(255,255,255,0.3);
    font-size: 16px;
    border: 1px solid var(--border);
}

.placeholder-icon { font-size: 64px; }

/* ===== Services ===== */
.services { background: var(--bg-dark); }

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px 28px;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(192,57,43,0.1);
}

.service-icon {
    font-size: 36px;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Works ===== */
.works { background: var(--bg-section); }

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

.work-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.work-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-icon { font-size: 48px; opacity: 0.6; }

.work-overlay {
    position: absolute;
    inset: 0;
    background: rgba(192,57,43,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-info {
    padding: 20px 24px;
}

.work-info h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 6px;
    font-weight: 600;
}

.work-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== News ===== */
.news { background: var(--bg-dark); }

.news-empty {
    text-align: center;
    padding: 60px 20px;
    max-width: 400px;
    margin: 0 auto;
}

.news-empty-icon { font-size: 48px; margin-bottom: 16px; }

.news-empty h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 8px;
}

.news-empty p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.wechat-qr-placeholder {
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.qr-icon { font-size: 36px; }

/* ===== Contact ===== */
.contact { background: var(--bg-section); }

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

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

.contact-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }

.contact-item h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.contact-item p {
    font-size: 15px;
    color: #fff;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition);
    outline: none;
}

.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--primary); }

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

.form-submit {
    align-self: flex-start;
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-light);
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--primary-light); }

.footer-copyright p {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-copyright p + p {
    margin-top: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(12px);
        padding: 20px 24px;
        transform: translateY(-120%);
        transition: transform var(--transition);
        border-bottom: 1px solid var(--border);
    }

    .nav.open {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 16px;
    }

    .nav-link {
        font-size: 16px;
        display: block;
        padding: 8px 0;
    }

    .hamburger {
        display: flex;
    }

    .section { padding: 60px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .works-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-number { font-size: 32px; }
    .hero-title { font-size: 32px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { padding: 16px 8px; }
    .stat-number { font-size: 28px; }
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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