:root {
    --ink: #2c2c2c;
    --ink-light: #5a5a5a;
    --ink-lighter: #8a8a8a;
    --paper: #f5f0e8;
    --paper-dark: #e8e0d0;
    --paper-deep: #d4c9b8;
    --vermilion: #c23a2b;
    --vermilion-light: #d4564a;
    --gold: #b8860b;
    --gold-light: #d4a843;
    --gold-dim: rgba(184, 134, 11, 0.15);
    --seal-red: #b5302a;
    --jade: #5a8f7b;
    --jade-dim: rgba(90, 143, 123, 0.12);
    --bronze: #8b7355;
    --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --transition: all 0.4s ease;
}

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.8;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
}

::selection {
    background: var(--vermilion);
    color: #fff;
}

.navbar {
    background: rgba(245, 240, 232, 0.92);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--paper-deep);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(245, 240, 232, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 60px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.logo-link:hover .logo-text {
    color: var(--vermilion);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0.2rem;
}

.nav-menu a {
    color: var(--ink-light);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 400;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    letter-spacing: 1px;
}

.nav-menu a:hover,
.nav-menu .active {
    color: var(--vermilion);
}

.nav-menu .active {
    font-weight: 500;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
    transition: var(--transition);
}

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

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

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

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--ink);
}

#ink-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 40%, rgba(44, 44, 44, 0.3) 0%, rgba(44, 44, 44, 0.85) 70%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--paper);
    padding: 3rem 2rem;
    animation: heroFadeIn 1.5s ease-out;
}

.hero-ornament {
    width: 120px;
    height: 1px;
    margin: 0 auto;
    position: relative;
}

.hero-ornament.top {
    margin-bottom: 2.5rem;
}

.hero-ornament.bottom {
    margin-top: 2.5rem;
}

.hero-ornament::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-ornament::after {
    content: '◆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold);
    font-size: 0.5rem;
    background: var(--ink);
    padding: 0 0.8rem;
    line-height: 1;
}

.hero-subtitle-top {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 6px;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 12px;
    margin-bottom: 1.5rem;
    color: var(--paper);
}

.hero-desc {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: rgba(245, 240, 232, 0.6);
    line-height: 2.2;
    letter-spacing: 2px;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.scroll-hint span {
    font-size: 0.7rem;
    color: rgba(245, 240, 232, 0.4);
    letter-spacing: 4px;
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

.content-section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

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

.section-ornament {
    width: 40px;
    height: 2px;
    background: var(--vermilion);
    margin: 0 auto 1.5rem;
    position: relative;
}

.section-ornament::before,
.section-ornament::after {
    content: '';
    position: absolute;
    top: 0;
    width: 6px;
    height: 2px;
    background: var(--vermilion);
}

.section-ornament::before {
    left: -12px;
}

.section-ornament::after {
    right: -12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--ink-lighter);
    letter-spacing: 3px;
    font-weight: 300;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-lead {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--ink);
    line-height: 2.2;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.about-body {
    font-size: 0.95rem;
    color: var(--ink-light);
    line-height: 2;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 0.5rem;
}

.value-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.value-char {
    flex: 0 0 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--vermilion);
    border: 2px solid var(--vermilion);
    border-radius: 4px;
    line-height: 1;
}

.value-text h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.3rem;
    letter-spacing: 2px;
}

.value-text p {
    font-size: 0.88rem;
    color: var(--ink-lighter);
    line-height: 1.6;
}

.services-section {
    background: #fff;
}

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

.service-card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--vermilion);
    transition: width 0.4s ease;
}

.service-card:hover::after {
    width: 40px;
}

.service-card:hover {
    background: rgba(194, 58, 43, 0.02);
}

.service-icon {
    color: var(--vermilion);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--ink-lighter);
    line-height: 1.8;
}

.contact-section {
    background: var(--paper);
}

.contact-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 2.5rem;
    border: 1px solid var(--paper-deep);
    background: #fff;
}

.contact-item {
    text-align: center;
    padding: 0.5rem 1rem;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    color: var(--ink-lighter);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--ink);
    letter-spacing: 1px;
}

.contact-divider {
    width: 1px;
    height: 40px;
    background: var(--paper-deep);
}

.footer {
    background: var(--ink);
    color: var(--paper-dark);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 2rem;
}

.footer-logo {
    height: 36px;
    width: auto;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.footer-inner p {
    font-size: 0.8rem;
    color: rgba(245, 240, 232, 0.4);
    letter-spacing: 1px;
}

.footer-inner a {
    color: rgba(245, 240, 232, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-inner a:hover {
    color: rgba(245, 240, 232, 0.7);
}

.reveal {
    opacity: 0;
    transform: none;
    transition: none;
}

.reveal.active {
    opacity: 1;
}

.project-card {
    perspective: 800px;
}

.hero-title .char {
    transform-style: preserve-3d;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: rgba(245, 240, 232, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.4s ease;
        border-left: 1px solid var(--paper-deep);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 0.95rem;
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--paper-dark);
        border-radius: 0;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .service-card {
        padding: 2rem 1.5rem;
        border-bottom: 1px solid var(--paper-dark);
    }

    .service-card:last-child {
        border-bottom: none;
    }

    .contact-layout {
        flex-direction: column;
        gap: 0;
        padding: 2rem;
    }

    .contact-divider {
        width: 40px;
        height: 1px;
        margin: 1rem 0;
    }

    .hero-title {
        letter-spacing: 6px;
    }

    .scroll-hint {
        display: none;
    }
}
