@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&display=swap');

:root {
    --primary: #3A271B;
    --secondary: #5C4033;
    --accent: #A67C52;
    --gold: #D4A76A;
    --light: #F9F6F2;
    --dark: #3A271B;
    --text: #5C4033;
    --text-light: #8B6E58;
    --border: #E6D8C6;
}

[data-theme="dark"] {
    --primary: #F9F6F2;
    --secondary: #E6D8C6;
    --accent: #C8A074;
    --gold: #E0C191;
    --light: #3A271B;
    --dark: #F9F6F2;
    --text: #C8B29D;
    --text-light: #8B6E58;
    --border: #5C4033;
}

/* 基础样式 */
body {
    font-family: 'Inter', 'Noto Serif SC', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

p {
    font-family: 'Noto Serif SC', serif;
    color: var(--text);
    line-height: 1.6;
}

/* 渐变样式 */
.hero-gradient {
    background: linear-gradient(135deg, rgba(58, 39, 27, 0.8) 0%, rgba(92, 64, 51, 0.9) 100%);
}

.metal-gradient {
    background: linear-gradient(135deg, #3A271B 0%, #5C4033 50%, #8B6E58 100%);
}

.gold-gradient {
    background: linear-gradient(135deg, #D4A76A 0%, #E0C191 100%);
}

.accent-gradient {
    background: linear-gradient(135deg, #A67C52 0%, #C8A074 100%);
}

/* 按钮样式 */
.btn-primary {
    background: var(--accent);
    color: white;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(166, 124, 82, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(166, 124, 82, 0.4);
}

/* 卡片样式 */
.metal-card {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
}

.metal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.metal-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(166, 124, 82, 0.1), rgba(166, 124, 82, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

/* 轮播样式 */
.slider-container {
    position: relative;
    overflow: hidden;
    height: 100vh;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.slide-overlay {
    background: rgba(58, 39, 27, 0.7);
    padding: 3rem;
    border-radius: 1rem;
    max-width: 800px;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* 导航和主题切换 */
.toggle-theme {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.toggle-theme:hover {
    transform: rotate(180deg);
}

.nav-link {
    position: relative;
    color: var(--primary);
    transition: all 0.3s ease;
}

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

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 浮动元素 */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: var(--light);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.chat-widget {
    position: fixed;
    bottom: 80px;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(166, 124, 82, 0.4);
    z-index: 99;
}

.chat-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px -5px rgba(166, 124, 82, 0.6);
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* 信任标志 */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

/* 制造图片 */
.manufacturing-img {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.manufacturing-img:hover {
    transform: scale(1.02);
}

.manufacturing-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(166, 124, 82, 0.2), rgba(212, 167, 106, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.manufacturing-img:hover::before {
    opacity: 1;
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--light);
    border-left: 1px solid var(--border);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 101;
    overflow-y: auto;
}

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

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 案例研究卡片 */
.case-study-card {
    border-radius: 1rem;
    overflow: hidden;
    background: var(--light);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.case-study-header {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: white;
    padding: 1.5rem;
}

.case-study-body {
    padding: 1.5rem;
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 69, 19, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.card-hover:hover::before {
    width: 300px;
    height: 300px;
}

.card-content {
    position: relative;
    z-index: 1;
}

/* 表单输入 */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 39, 27, 0.1);
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .slide-overlay {
        padding: 2rem;
    }
    
    .fixed-cta {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .chat-widget {
        bottom: 120px;
    }
    
    .step-card:not(:last-child)::after {
        display: none !important;
    }
}

/* 右侧中部浮动联系条 */
.contact-float-bar {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 999;
}

/* 通用按钮 */
.contact-btn {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    transition: all .3s ease;
    backdrop-filter: blur(6px);
}

.contact-btn span {
    font-size: 11px;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* LINE */
.line-btn {
    background: linear-gradient(135deg, #06C755, #1DB954);
}

.line-btn:hover {
    transform: translateX(-4px) scale(1.05);
}

/* Email */
.email-btn {
    background: linear-gradient(135deg, var(--accent), var(--gold));
}

.email-btn:hover {
    transform: translateX(-4px) scale(1.05);
}

/* 首次访问提示动画 */
.contact-attention {
    animation: gentlePulse 1.8s ease-in-out infinite;
}

@keyframes gentlePulse {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.06); }
    100% { transform: translateY(-50%) scale(1); }
}

/* 移动端微调 */
@media (max-width: 768px) {
    .contact-btn {
        width: 56px;
        height: 56px;
    }
}

/* FAQ Accordion */
.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.faq-question i {
    transition: transform .3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    padding: 0 18px;
}

.faq-answer p {
    padding-bottom: 16px;
    color: #555;
    line-height: 1.7;
}

/* Active */
.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
