/* ========================================
   定神化工原料生产官网 - 黏土拟态风格样式
   ======================================== */

/* CSS 变量 - 设计系统 */
:root {
    --chrome: #C0C0C0;
    --jelly-pink: #FF9ECD;
    --soft-blue: #87CEEB;
    --clay: #FFD9C7;
    --violet: #6D28D9;
    --violet-deep: #4C1D95;
    --ink: #2A2140;
    --ink-soft: #5B5175;
    --bg1: #EAF4FB;
    --bg2: #FDEFF7;
    
    --radius: 22px;
    --shadow-light: 0 4px 12px rgba(42, 33, 64, 0.08);
    --shadow-medium: 0 8px 24px rgba(42, 33, 64, 0.12);
    --shadow-clay: 
        0 4px 0 rgba(42, 33, 64, 0.15),
        0 8px 24px rgba(42, 33, 64, 0.12),
        inset 0 -2px 4px rgba(255, 255, 255, 0.3);
    --shadow-clay-hover:
        0 6px 0 rgba(42, 33, 64, 0.15),
        0 12px 32px rgba(42, 33, 64, 0.16),
        inset 0 -2px 4px rgba(255, 255, 255, 0.3);
    --shadow-press:
        0 2px 0 rgba(42, 33, 64, 0.15),
        0 4px 12px rgba(42, 33, 64, 0.12),
        inset 0 2px 4px rgba(42, 33, 64, 0.1);
    
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
    overflow-x: hidden;
}

/* ========================================
   顶部导航栏
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(42, 33, 64, 0.1);
    box-shadow: var(--shadow-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
}

.brand-icon {
    transition: transform 0.3s var(--transition-bounce);
}

.brand:hover .brand-icon {
    transform: rotate(10deg) scale(1.1);
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-link {
    padding: 10px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s var(--transition-smooth);
    border: 2px solid transparent;
}

.nav-link:hover {
    background: var(--clay);
    border-color: var(--ink);
    transform: translateY(-2px);
}

.nav-link:focus-visible {
    outline: 3px solid var(--jelly-pink);
    outline-offset: 2px;
}

.cta-button {
    padding: 12px 24px;
    background: var(--jelly-pink);
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: var(--shadow-clay);
    transition: all 0.3s var(--transition-bounce);
}

.cta-button:hover {
    background: var(--soft-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-clay-hover);
}

.cta-button:active {
    transform: translateY(0) scale(0.95);
    box-shadow: var(--shadow-press);
}

.cta-button:focus-visible {
    outline: 3px solid var(--violet);
    outline-offset: 2px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s var(--transition-smooth);
}

/* ========================================
   Hero 区域
   ======================================== */
.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    min-height: 60vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.eyebrow {
    display: inline-block;
    padding: 8px 16px;
    background: var(--clay);
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: var(--shadow-clay);
    width: fit-content;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--ink-soft);
    line-height: 1.6;
    max-width: 34em;
}

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

.btn-primary,
.btn-secondary {
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s var(--transition-bounce);
    min-height: 44px;
}

.btn-primary {
    background: var(--jelly-pink);
    color: var(--ink);
    border: 2px solid var(--ink);
    box-shadow: var(--shadow-clay);
}

.btn-primary:hover {
    background: var(--soft-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-clay-hover);
}

.btn-primary:active {
    transform: translateY(0) scale(0.95);
    box-shadow: var(--shadow-press);
}

.btn-secondary {
    background: white;
    color: var(--ink);
    border: 2px solid var(--ink);
    box-shadow: var(--shadow-clay);
}

.btn-secondary:hover {
    background: var(--clay);
    transform: translateY(-2px);
    box-shadow: var(--shadow-clay-hover);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.95);
    box-shadow: var(--shadow-press);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 3px solid var(--violet);
    outline-offset: 2px;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clay-shape {
    position: absolute;
    border-radius: 50%;
    border: 3px solid var(--ink);
    box-shadow: var(--shadow-clay);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--jelly-pink);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--soft-blue);
    top: 50%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    background: var(--clay);
    bottom: 10%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ========================================
   风格信息条
   ======================================== */
.info-chips-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

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

.chip {
    padding: 10px 20px;
    background: white;
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-clay);
    transition: all 0.3s var(--transition-bounce);
    cursor: default;
}

.chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-clay-hover);
}

/* ========================================
   通用 Section 样式
   ======================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--ink);
}

.section-subtitle {
    font-size: 18px;
    color: var(--ink-soft);
    text-align: center;
    margin-bottom: 48px;
    max-width: 34em;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   关于我们
   ======================================== */
.about-section {
    background: white;
    border-top: 2px solid rgba(42, 33, 64, 0.1);
    border-bottom: 2px solid rgba(42, 33, 64, 0.1);
}

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

.about-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    padding: 24px 16px;
    background: var(--bg1);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-clay);
    transition: all 0.3s var(--transition-bounce);
}

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

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--ink-soft);
    font-weight: 500;
}

/* ========================================
   产品/服务展示
   ======================================== */
.products-section {
    background: linear-gradient(180deg, var(--bg2) 0%, var(--bg1) 100%);
}

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

.product-card {
    padding: 32px 24px;
    background: white;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow-clay);
    transition: all 0.3s var(--transition-bounce);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-clay-hover);
}

.card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg1);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow-clay);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}

.card-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
    flex: 1;
}

.card-link {
    padding: 10px 20px;
    background: var(--clay);
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--shadow-clay);
    transition: all 0.3s var(--transition-bounce);
    align-self: flex-start;
}

.card-link:hover {
    background: var(--jelly-pink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-clay-hover);
}

.card-link:active {
    transform: translateY(0) scale(0.95);
    box-shadow: var(--shadow-press);
}

/* ========================================
   团队成员
   ======================================== */
.team-section {
    background: white;
    border-top: 2px solid rgba(42, 33, 64, 0.1);
    border-bottom: 2px solid rgba(42, 33, 64, 0.1);
}

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

.team-card {
    padding: 32px 24px;
    background: var(--bg1);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow-clay);
    text-align: center;
    transition: all 0.3s var(--transition-bounce);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.team-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid var(--ink);
    box-shadow: var(--shadow-clay);
    overflow: hidden;
}

.team-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

.team-role {
    font-size: 14px;
    color: var(--violet);
    font-weight: 600;
    padding: 6px 12px;
    background: white;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    display: inline-block;
    margin: 0 auto;
    width: fit-content;
}

.team-bio {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* ========================================
   联系表单
   ======================================== */
.contact-section {
    background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    background: white;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    box-shadow: var(--shadow-clay);
    transition: all 0.3s var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 3px solid var(--violet);
    outline-offset: 2px;
}

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

.contact-form .btn-primary {
    align-self: center;
    min-width: 200px;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--ink);
    color: white;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
}

.footer-icon {
    filter: brightness(0) invert(1);
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s var(--transition-smooth);
}

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

.footer-links a:focus-visible {
    outline: 2px solid var(--jelly-pink);
    outline-offset: 4px;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
}

.footer-copyright a:hover {
    color: var(--jelly-pink);
}

/* ========================================
   响应式适配
   ======================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        border-bottom: 2px solid var(--ink);
        box-shadow: var(--shadow-medium);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .cta-button {
        display: none;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        padding: 48px 24px;
        min-height: auto;
    }
    
    .hero-visual {
        height: 300px;
        order: -1;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .section-container {
        padding: 48px 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .chips-container {
        justify-content: flex-start;
    }
    
    .chip {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}
