/* ========================================
   新盛公司客服 - 拟物化设计风格
   Skeuomorphism Style (2007-2012 iOS)
   ======================================== */

/* 设计系统变量 */
:root {
    /* 主色调 - 拟物化木质/皮革/金属 */
    --wood: #8B5A2B;
    --wood-deep: #66391B;
    --leather: #56351D;
    --leather-deep: #472A15;
    --brass: #D9A32F;
    --brass-deep: #9C6F14;
    --silver: #C0C0C0;
    --paper: #F0E6D2;
    --paper-hi: #FBF4E3;
    --ink: #2B1D12;
    
    /* 功能色 */
    --primary: var(--wood);
    --primary-dark: var(--wood-deep);
    --accent: var(--brass);
    --accent-dark: var(--brass-deep);
    --bg: var(--paper);
    --bg-light: var(--paper-hi);
    --text: var(--ink);
    --text-secondary: #5A4632;
    --border: rgba(139, 90, 43, 0.3);
    
    /* 间距系统 - 8px 模数 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* 圆角 - 核心 10px */
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 14px;
    
    /* 阴影系统 - 多层拟物化 */
    --shadow-sm: 
        0 1px 2px rgba(43, 29, 18, 0.1),
        0 2px 4px rgba(43, 29, 18, 0.08);
    
    --shadow-md: 
        0 2px 4px rgba(43, 29, 18, 0.12),
        0 4px 8px rgba(43, 29, 18, 0.1),
        0 8px 16px rgba(43, 29, 18, 0.08);
    
    --shadow-lg: 
        0 4px 8px rgba(43, 29, 18, 0.15),
        0 8px 16px rgba(43, 29, 18, 0.12),
        0 16px 32px rgba(43, 29, 18, 0.1),
        0 32px 64px rgba(43, 29, 18, 0.08);
    
    --shadow-inset: 
        inset 0 2px 4px rgba(43, 29, 18, 0.15),
        inset 0 1px 2px rgba(43, 29, 18, 0.1);
    
    /* 渐变系统 */
    --gradient-wood: linear-gradient(
        145deg,
        #A0693A 0%,
        #8B5A2B 20%,
        #7A4E24 40%,
        #66391B 60%,
        #56351D 80%,
        #472A15 100%
    );
    
    --gradient-leather: linear-gradient(
        145deg,
        #6B4426 0%,
        #56351D 25%,
        #472A15 50%,
        #3A2110 75%,
        #2B1D12 100%
    );
    
    --gradient-brass: linear-gradient(
        145deg,
        #E8B84A 0%,
        #D9A32F 20%,
        #C49028 40%,
        #9C6F14 60%,
        #7A5610 80%,
        #5A3F0C 100%
    );
    
    --gradient-paper: linear-gradient(
        180deg,
        #FBF4E3 0%,
        #F0E6D2 50%,
        #E5D9C0 100%
    );
    
    /* 动效 */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background: var(--gradient-paper);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 纹理叠加 - 模拟真实材质 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

/* 排版系统 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
}

h4 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

p {
    max-width: 34em;
    margin-bottom: var(--space-md);
}

/* 链接 */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ========================================
   顶部导航栏
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(
        180deg,
        #FBF4E3 0%,
        #F0E6D2 100%
    );
    border-bottom: 1px solid var(--border);
    box-shadow: 
        0 2px 8px rgba(43, 29, 18, 0.1),
        0 4px 16px rgba(43, 29, 18, 0.08),
        inset 0 -1px 0 rgba(255, 255, 255, 0.5);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.brand svg {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(139, 90, 43, 0.1);
}

.nav-links a.active {
    color: var(--text);
    background: var(--gradient-wood);
    color: var(--paper-hi);
    box-shadow: var(--shadow-sm);
}

/* 主 CTA 按钮 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--gradient-wood);
    color: var(--paper-hi);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 
        0 4px 12px rgba(139, 90, 43, 0.3),
        0 8px 24px rgba(139, 90, 43, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    min-height: 44px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(139, 90, 43, 0.4),
        0 12px 32px rgba(139, 90, 43, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(139, 90, 43, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 44px;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--paper-hi);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.btn-ghost:hover {
    color: var(--text);
}

/* 汉堡菜单 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-sm);
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(217, 163, 47, 0.1) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: rgba(217, 163, 47, 0.15);
    border-radius: var(--radius);
    border: 1px solid rgba(217, 163, 47, 0.3);
}

.hero h1 {
    margin-bottom: var(--space-lg);
    background: var(--gradient-leather);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* 装饰性 3D 元素 */
.hero-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient-brass);
    opacity: 0.1;
    filter: blur(60px);
    pointer-events: none;
}

.hero-decoration-1 {
    top: 10%;
    right: -100px;
}

.hero-decoration-2 {
    bottom: 10%;
    left: -100px;
}

/* ========================================
   风格信息条
   ======================================== */
.style-chips {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    padding: var(--space-lg) 0;
    margin-bottom: var(--space-xl);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.chip::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ========================================
   特性卡片区
   ======================================== */
.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    box-shadow: 
        0 2px 8px rgba(43, 29, 18, 0.08),
        0 4px 16px rgba(43, 29, 18, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 24px rgba(43, 29, 18, 0.12),
        0 16px 48px rgba(43, 29, 18, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-wood);
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
    box-shadow: 
        0 4px 12px rgba(139, 90, 43, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--paper-hi);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

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

.team-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    background: var(--gradient-wood);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--paper-hi);
    box-shadow: 
        0 8px 24px rgba(139, 90, 43, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.team-card h3 {
    margin-bottom: var(--space-xs);
}

.team-role {
    color: var(--accent-dark);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.team-bio {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* ========================================
   表单样式
   ======================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-inset);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 
        var(--shadow-inset),
        0 0 0 3px rgba(217, 163, 47, 0.2);
}

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

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--gradient-leather);
    color: var(--paper);
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-3xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

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

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--paper);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(240, 230, 210, 0.2);
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ========================================
   响应式适配
   ======================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-light);
        padding: var(--space-md);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: var(--space-2xl) 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
}

/* ========================================
   无障碍与动效
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* 焦点可见性 */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* 图片随机展示容器 */
.random-image-container {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--gradient-wood);
}

.random-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 服务卡片 */
.service-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    margin-bottom: var(--space-sm);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
}

.service-link:hover {
    gap: var(--space-sm);
}

/* 联系信息卡片 */
.contact-info {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-wood);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--paper-hi);
    fill: none;
    stroke-width: 2;
}

.contact-text {
    flex: 1;
}

.contact-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}
