/* 八戒云游科技 - 反精致/生涩美学风格 */
:root {
    --paper-bg: #FAFAF8;
    --pencil: #4A4A4A;
    --marker: #1A1A1A;
    --kraft: #C4A77D;
    --tape: rgba(196,167,125,.55);
    --aged: #EDE6D6;
    --white: #FFF;
    --texture-opacity: .3;
    --font-hand: "ZCOOL KuaiLe","Patrick Hand","Comic Sans MS",cursive;
    --radius: 4px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-hand);
    font-size: 16px;
    line-height: 1.6;
    color: var(--pencil);
    background-color: var(--paper-bg);
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 24px,
            rgba(196,167,125,0.05) 24px,
            rgba(196,167,125,0.05) 25px
        );
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 顶部导航栏 */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper-bg);
    border-bottom: 2px solid var(--aged);
    padding: 16px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--marker);
}

.logo svg {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--pencil);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
}

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

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

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

.btn-primary {
    display: inline-block;
    background: var(--marker);
    color: var(--paper-bg);
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--marker);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--pencil);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--marker);
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--kraft);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--aged);
    border-color: var(--marker);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--marker);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero 区域 */
.hero {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--tape) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--kraft) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
}

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

.hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--kraft);
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px dashed var(--kraft);
    border-radius: var(--radius);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--marker);
    margin-bottom: 24px;
    max-width: 700px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--pencil);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
}

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

/* 风格信息条 */
.chip-bar {
    padding: 24px 0;
    border-top: 1px solid var(--aged);
    border-bottom: 1px solid var(--aged);
    background: var(--aged);
}

.chip-bar .container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    background: var(--paper-bg);
    border: 1px solid var(--kraft);
    border-radius: var(--radius);
    color: var(--pencil);
}

.chip svg {
    width: 14px;
    height: 14px;
    stroke: var(--kraft);
}

/* 章节通用样式 */
.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--marker);
    margin-bottom: 16px;
}

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

/* 特性卡片 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--white);
    border: 2px solid var(--aged);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 16px;
    background: var(--tape);
    border-radius: 2px;
    opacity: 0.7;
}

.feature-card:hover {
    border-color: var(--kraft);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(196,167,125,0.15);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aged);
    border-radius: var(--radius);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--marker);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--marker);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--pencil);
    line-height: 1.6;
}

/* 关于我们 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--marker);
    margin-bottom: 20px;
}

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

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

.stat-item {
    text-align: center;
    padding: 24px;
    background: var(--aged);
    border-radius: var(--radius);
    border: 1px dashed var(--kraft);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--marker);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--pencil);
    margin-top: 8px;
}

.about-visual {
    position: relative;
    height: 400px;
    background: var(--aged);
    border-radius: var(--radius);
    border: 2px solid var(--kraft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(196,167,125,0.1) 10px,
            rgba(196,167,125,0.1) 20px
        );
}

.about-visual svg {
    width: 200px;
    height: 200px;
    opacity: 0.6;
    position: relative;
    z-index: 1;
}

/* 团队成员 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.team-card {
    background: var(--white);
    border: 2px solid var(--aged);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}

.team-card:hover {
    border-color: var(--kraft);
    transform: translateY(-4px);
}

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: var(--aged);
    border-radius: 50%;
    border: 3px solid var(--kraft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar svg {
    width: 50px;
    height: 50px;
    stroke: var(--pencil);
}

.team-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--marker);
    margin-bottom: 8px;
}

.team-role {
    font-size: 14px;
    color: var(--kraft);
    font-weight: 500;
    margin-bottom: 12px;
}

.team-bio {
    font-size: 14px;
    color: var(--pencil);
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: var(--aged);
    padding: 48px 0 24px;
    border-top: 2px solid var(--kraft);
}

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

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--pencil);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--marker);
    margin-bottom: 16px;
}

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

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

.footer-links a {
    font-size: 14px;
    color: var(--pencil);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--kraft);
    text-align: center;
    font-size: 13px;
    color: var(--pencil);
}

/* 响应式 */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper-bg);
        flex-direction: column;
        padding: 24px;
        border-bottom: 2px solid var(--aged);
        gap: 16px;
    }

    .nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-visual {
        height: 250px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section {
        padding: 48px 0;
    }
}

/* 页面特定样式 */
.page-hero {
    padding: 60px 0;
    text-align: center;
    background: var(--aged);
    border-bottom: 2px solid var(--kraft);
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--marker);
    margin-bottom: 16px;
}

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

/* 服务详情页 */
.service-detail {
    padding: 60px 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-detail-card {
    background: var(--white);
    border: 2px solid var(--aged);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: all 0.3s;
}

.service-detail-card:hover {
    border-color: var(--kraft);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(196,167,125,0.15);
}

.service-detail-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--marker);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-detail-card h3 svg {
    width: 32px;
    height: 32px;
    stroke: var(--kraft);
}

.service-detail-card p {
    font-size: 15px;
    color: var(--pencil);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-detail-card ul {
    list-style: none;
    margin-top: 16px;
}

.service-detail-card li {
    font-size: 14px;
    color: var(--pencil);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.service-detail-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--kraft);
    border-radius: 50%;
    opacity: 0.6;
}

/* 团队成员详情页 */
.team-detail {
    padding: 60px 0;
}

.team-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-detail-card {
    background: var(--white);
    border: 2px solid var(--aged);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s;
}

.team-detail-card:hover {
    border-color: var(--kraft);
    transform: translateY(-4px);
}

.team-detail-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    background: var(--aged);
    border-radius: 50%;
    border: 4px solid var(--kraft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-detail-avatar svg {
    width: 60px;
    height: 60px;
    stroke: var(--pencil);
}

.team-detail-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--marker);
    margin-bottom: 8px;
}

.team-detail-role {
    font-size: 15px;
    color: var(--kraft);
    font-weight: 500;
    margin-bottom: 16px;
}

.team-detail-bio {
    font-size: 15px;
    color: var(--pencil);
    line-height: 1.8;
    margin-bottom: 20px;
}

.team-detail-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.expertise-tag {
    font-size: 12px;
    padding: 6px 12px;
    background: var(--aged);
    border: 1px solid var(--kraft);
    border-radius: var(--radius);
    color: var(--pencil);
}

/* 焦点可见 */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--kraft);
    outline-offset: 2px;
}

/* 减弱动效 */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}
