/* ============================================
   六脉食品官网 - 主样式表
   匠心烘焙 · 脆享生活
   ============================================ */

/* ===== CSS 变量 ===== */
:root {
    --color-primary: #D4A04C;
    --color-primary-dark: #B8862F;
    --color-primary-light: #E8C580;
    --color-secondary: #8B4513;
    --color-accent: #FF6B35;
    --color-dark: #2D1810;
    --color-dark-soft: #4A3520;
    --color-light: #FFF9F0;
    --color-light-soft: #FAF3E8;
    --color-white: #FFFFFF;
    --color-gray: #8C8C8C;
    --color-gray-light: #E8E8E8;
    --color-success: #4CAF50;
    --gradient-primary: linear-gradient(135deg, #D4A04C 0%, #B8862F 100%);
    --gradient-warm: linear-gradient(135deg, #FFF9F0 0%, #FAF3E8 100%);
    --gradient-hero: linear-gradient(135deg, #2D1810 0%, #4A3520 50%, #8B4513 100%);
    --shadow-sm: 0 2px 8px rgba(45, 24, 16, 0.08);
    --shadow-md: 0 8px 24px rgba(45, 24, 16, 0.12);
    --shadow-lg: 0 16px 48px rgba(45, 24, 16, 0.18);
    --shadow-xl: 0 24px 64px rgba(45, 24, 16, 0.22);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease;
    --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', 'Noto Sans SC', serif;
    --container-max: 1200px;
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    color: var(--color-dark);
    background: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== 容器 ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(212, 160, 76, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(212, 160, 76, 0.55);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
    transform: translateY(-3px);
}

.btn-light {
    background: var(--color-white);
    color: var(--color-dark);
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.05rem;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 14px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-white);
    transition: var(--transition);
}

.navbar.scrolled .nav-logo {
    color: var(--color-dark);
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(212, 160, 76, 0.4);
    transition: var(--transition);
}

/* Logo 图片样式 */
.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.nav-logo:hover .logo-img {
    transform: rotate(-8deg) scale(1.08);
}

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

.logo-text {
    font-family: var(--font-display);
}

.nav-menu {
    display: flex;
    gap: 36px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.navbar.scrolled .nav-link {
    color: var(--color-dark-soft);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
    border-radius: 2px;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--color-white);
    border-radius: 3px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--color-dark);
}

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

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

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

/* ===== Hero 首屏 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(212, 160, 76, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(139, 69, 19, 0.2) 0%, transparent 50%);
}

.hero-bg-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 160, 76, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.06) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 120px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-text {
    color: var(--color-white);
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--color-primary-light);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #E8C580 0%, #D4A04C 50%, #FF6B35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    line-height: 1.8;
}

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

/* Hero 视觉区 */
.hero-visual {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-circle {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(212, 160, 76, 0.25), rgba(139, 69, 19, 0.1));
    border: 2px solid rgba(212, 160, 76, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 80px rgba(212, 160, 76, 0.2);
}

.hero-circle-inner {
    text-align: center;
    color: var(--color-white);
}

.circle-text-top {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 6px;
    color: var(--color-primary-light);
    margin-bottom: 8px;
}

.circle-year {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #E8C580, #D4A04C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.circle-text-bottom {
    display: block;
    font-size: 1rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.hero-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-dark);
    animation: float 4s ease-in-out infinite;
}

.badge-1 { top: 15%; left: 5%; animation-delay: 0s; }
.badge-2 { top: 20%; right: 0%; animation-delay: 1.5s; }
.badge-3 { bottom: 15%; left: 10%; animation-delay: 3s; }

.badge-icon {
    font-size: 1.3rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    z-index: 3;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-primary-light);
    border-radius: 2px;
    animation: scrollWheel 2s ease infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 2px;
}

/* ===== 数据统计 ===== */
.stats-section {
    background: var(--color-dark);
    padding: 60px 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-primary);
    font-family: var(--font-display);
    line-height: 1;
}

.stat-suffix {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 4px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-top: 8px;
}

/* ===== Section 通用 ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-eyebrow {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== 产品中心 ===== */
.products-section {
    padding: 100px 0;
    background: var(--gradient-warm);
    position: relative;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.product-image-wrapper {
    position: relative;
    height: 380px;
    overflow: hidden;
    background: var(--color-light-soft);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 24, 16, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.product-tag.tag-new {
    background: var(--color-success);
}

.product-info {
    padding: 28px;
}

.product-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.product-desc {
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: var(--color-light-soft);
    color: var(--color-primary-dark);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(212, 160, 76, 0.2);
}

.products-cta {
    text-align: center;
}

/* ===== 品牌故事 ===== */
.story-section {
    padding: 100px 0;
    background: var(--color-white);
    overflow: hidden;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-visual {
    position: relative;
}

.story-image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.story-image-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.story-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.deco-circle {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    border: 3px solid var(--color-primary-light);
    border-radius: 50%;
    opacity: 0.5;
}

.deco-dots {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, var(--color-primary) 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.3;
}

.story-content .section-title {
    text-align: left;
}

.story-content .section-eyebrow {
    margin-bottom: 12px;
}

.story-text {
    margin: 24px 0 36px;
}

.story-text p {
    color: var(--color-dark-soft);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 16px;
}

.story-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-item {
    text-align: center;
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.value-item h4 {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.value-item p {
    font-size: 0.85rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* ===== 匠心工艺 ===== */
.craft-section {
    padding: 100px 0;
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
}

.craft-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(212, 160, 76, 0.1) 0%, transparent 60%);
}

.craft-section .section-title {
    color: var(--color-white);
}

.craft-section .section-eyebrow {
    color: var(--color-primary-light);
}

.craft-section .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.craft-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.craft-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--color-primary), transparent);
    transform: translateX(-50%);
}

.craft-step {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.craft-step:nth-child(odd) {
    flex-direction: row;
    padding-right: 50%;
    text-align: right;
}

.craft-step:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: 50%;
    text-align: left;
}

.step-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(212, 160, 76, 0.4);
    z-index: 2;
}

.step-content {
    padding: 0 30px;
}

.step-title {
    font-size: 1.4rem;
    color: var(--color-white);
    margin-bottom: 8px;
}

.step-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== 产品画廊 ===== */
.gallery-section {
    padding: 100px 0;
    background: var(--gradient-warm);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-large {
    grid-row: 1 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(45, 24, 16, 0.9), transparent);
    color: var(--color-white);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.gallery-info p {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* ===== 联系我们 ===== */
.contact-section {
    padding: 100px 0;
    background: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info .section-title {
    text-align: left;
}

.contact-desc {
    color: var(--color-gray);
    font-size: 1.05rem;
    margin: 16px 0 36px;
    line-height: 1.8;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon-wrap {
    width: 56px;
    height: 56px;
    background: var(--gradient-warm);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon-wrap {
    background: var(--gradient-primary);
}

.contact-icon {
    width: 26px;
    height: 26px;
    color: var(--color-primary);
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    color: var(--color-white);
}

.contact-detail {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--color-gray);
    margin-bottom: 2px;
}

.contact-value {
    font-size: 1.1rem;
    color: var(--color-dark);
    font-weight: 500;
}

.contact-qr {
    display: flex;
    justify-content: center;
}

.qr-card {
    background: var(--gradient-warm);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    max-width: 340px;
}

.qr-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.qr-card img {
    width: 240px;
    height: 240px;
    object-fit: contain;
    border-radius: var(--radius-md);
    margin: 0 auto 20px;
    background: var(--color-white);
    padding: 10px;
}

.qr-info h4 {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.qr-info p {
    color: var(--color-gray);
    font-size: 0.9rem;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--color-white);
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-grid h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links a,
.footer-products a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: var(--transition-fast);
}

.footer-links a:hover,
.footer-products a:hover {
    color: var(--color-primary-light);
    padding-left: 6px;
}

.footer-contact p {
    font-size: 0.9rem;
    padding: 4px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ===== 滚动动画 ===== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===== 产品详情页 ===== */
.product-detail-section {
    padding: 120px 0 80px;
    background: var(--gradient-warm);
}

.product-detail-alt {
    background: var(--color-white);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.breadcrumb a {
    color: var(--color-primary-dark);
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

.breadcrumb .current {
    color: var(--color-dark);
    font-weight: 500;
}

.breadcrumb span {
    color: var(--color-gray-light);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

.product-detail-reverse .product-gallery {
    order: 2;
}

.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 16px;
    background: var(--color-white);
}

.main-product-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    background: var(--color-white);
}

.thumb:hover {
    border-color: var(--color-primary-light);
    transform: translateY(-3px);
}

.thumb.active {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.product-detail-tag {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.product-detail-tag.tag-new {
    background: var(--color-success);
}

.product-detail-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.product-detail-subtitle {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.stars {
    color: var(--color-primary);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.rating-text {
    color: var(--color-gray);
    font-size: 0.9rem;
}

.product-detail-desc {
    color: var(--color-dark-soft);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 28px;
}

.product-specs {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.product-detail-alt .product-specs {
    background: var(--color-light-soft);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gray-light);
}

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

.spec-label {
    color: var(--color-gray);
    font-size: 0.9rem;
}

.spec-value {
    color: var(--color-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.product-detail-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.detail-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-dark-soft);
}

.feature-check {
    width: 22px;
    height: 22px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.product-detail-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.product-detail-actions .btn-outline {
    color: var(--color-dark);
    border-color: var(--color-dark);
}

.product-detail-actions .btn-outline:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

/* 产品亮点 */
.product-highlights {
    margin-top: 60px;
}

.highlights-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 40px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.highlight-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-detail-alt .highlight-card {
    background: var(--color-light-soft);
}

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

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.highlight-card h3 {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.highlight-card p {
    font-size: 0.88rem;
    color: var(--color-gray);
    line-height: 1.7;
}

/* 分隔线 */
.product-divider {
    height: 4px;
    background: linear-gradient(to right, transparent, var(--color-primary-light), transparent);
    margin: 0;
}

/* CTA 区域 */
.detail-cta {
    padding: 80px 0;
    background: var(--gradient-hero);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.detail-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 160, 76, 0.15) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

/* ===== 响应式 ===== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        height: 360px;
    }

    .hero-circle {
        width: 260px;
        height: 260px;
    }

    .circle-year {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-image-frame img {
        height: 360px;
    }

    .story-values {
        grid-template-columns: repeat(3, 1fr);
    }

    .craft-timeline::before {
        left: 28px;
    }

    .craft-step:nth-child(odd),
    .craft-step:nth-child(even) {
        flex-direction: row;
        padding-right: 0;
        padding-left: 80px;
        text-align: left;
    }

    .step-number {
        left: 28px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px 200px;
    }

    .gallery-large {
        grid-row: 1 / 2;
        grid-column: 1 / 3;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-reverse .product-gallery {
        order: 0;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease;
        box-shadow: var(--shadow-xl);
    }

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

    .nav-menu .nav-link {
        color: var(--color-dark);
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .story-values {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 200px);
    }

    .gallery-large {
        grid-column: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-title {
        font-size: 2rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-features {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}
