/* ============================================
   广州酷果冰商贸有限公司 — 官网样式表
   主色调：#E8652A 橙色
   ============================================ */

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

:root {
    /* === 品牌主色体系 === */
    --orange:    #E8652A;    /* 品牌橙 - 主色调 */
    --orange-l:  #FF8F5E;    /* 浅橙 - 辅助色 */
    --bg:        #FAF9F7;    /* 米白背景 */
    --dark:      #1C1C1C;    /* 深黑文字 */
    --text:      #333333;     /* 正文文字 */
    --gray:      #666666;     /* 灰色文字 */
    --light-gray:#F0EFED;    /* 浅灰分隔 */
    --border:    #E5E3DF;    /* 边框色 */
    --white:     #FFFFFF;    /* 白色 */
    --gold:      #E8652A;    /* 金色（同主色） */
    --navy:      #1C2B3A;    /* 深海军蓝 */
    --transition: all 0.3s ease;
    /* 扩展色板 */
    --coral:     #E8652A;
    --teal:      #00CED1;
    --yellow:    #FFD166;
    --mint:      #98D8C8;
    --pink:      #FF85A1;
}

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

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark, #333);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* === 导航栏（汉堡菜单） === */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
    background: rgba(28,44,58,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(232,101,42,0.1);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 44px; height: 44px; gap: 5px;
    background: none; border: 1px solid rgba(232,101,42,0.3); border-radius: 8px; cursor: pointer;
    transition: all 0.2s;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--orange); border-radius: 2px; transition: all 0.25s; }
.nav-toggle:hover { background: rgba(232,101,42,0.1); }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.header-slogan { font-size: 0.9rem; color: var(--orange); font-weight: 500; letter-spacing: 1px; opacity: 0.9; white-space: nowrap; }

/* 导航抽屉 */
.nav-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 280px; z-index: 10000;
    transform: translateX(100%); transition: transform 0.3s ease;
    background: rgba(28,44,58,0.97); backdrop-filter: blur(16px);
    border-left: 1px solid rgba(232,101,42,0.15);
    padding: 80px 32px 32px;
    display: flex; flex-direction: column; gap: 4px;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-inner { display: flex; flex-direction: column; gap: 4px; }
.nav-drawer-cta {
    display: block; text-align: center; padding: 14px; border-radius: 10px;
    font-size: 1rem; margin-bottom: 16px;
    background: var(--orange) !important; color: #fff !important;
    font-weight: 700;
}
.nav-drawer-link {
    display: block; padding: 14px 16px; border-radius: 10px;
    color: rgba(255,255,255,0.85); font-size: 1.05rem; text-decoration: none;
    transition: all 0.2s; border: 1px solid transparent;
}
.nav-drawer-link:hover, .nav-drawer-link.active {
    background: rgba(232,101,42,0.1); color: var(--orange);
    border-color: rgba(232,101,42,0.2);
}
.nav-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.nav-overlay.show { opacity: 1; pointer-events: all; }

@media (min-width: 900px) {
    /* === 桌面端隐藏汉堡 === */
    .nav-toggle { display: none; }
    .nav-drawer, .nav-overlay { display: none; }

    /* === 桌面端 Header === */
    .header { background: rgba(28,44,58,0.85); }
    .header-inner {
        display: flex; align-items: center; justify-content: space-between;
        height: 70px;
    }
    .logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 700; color: var(--orange); }
    .logo-icon { height: 54px; width: auto; object-fit: contain; border-radius: 6px; }

    .nav { display: flex; gap: 32px; }
    .nav-link {
        font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,0.85);
        padding: 8px 0; position: relative; transition: var(--transition);
    }
    .nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--coral); transition: width 0.3s; }
    .nav-link:hover, .nav-link.active { color: #ffffff; }
    .nav-link:hover::after, .nav-link.active::after { width: 100%; }
    .nav-cta {
        background: var(--coral);
        color: #fff !important;
        padding: 8px 20px;
        border-radius: 20px;
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.3s;
    }
    .nav-cta:hover { background: var(--orange-l); color: #fff !important; transform: translateY(-1px); }
    .nav-cta::after { display: none; }
    .header.scrolled { background: rgba(28,44,58,0.97); }
}

/* === Hero Banner === */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(28,44,58,0.6) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(232,101,42,0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--navy) 0%, var(--bg) 100%);
    overflow: hidden;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(6,14,26,0.7) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 20px; }
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--orange-l) 50%, var(--orange) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    letter-spacing: 4px; margin-bottom: 16px;
    animation: fadeUp 1s ease-out;
    filter: drop-shadow(0 2px 12px rgba(232,101,42,0.4));
}
.hero-subtitle {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: var(--orange);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 48px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    animation: fadeUp 1s ease-out 0.3s both;
    word-break: break-word;
    max-width: 100%;
}
.hero-features {
    display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-bottom: 48px;
    animation: fadeUp 1s ease-out 0.6s both;
}
.hero-feature {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--orange);
}
.hero-feature i { font-size: 2rem; color: var(--orange-l); }
.btn {
    display: inline-block; padding: 14px 40px; border-radius: 50px;
    font-size: 1rem; font-weight: 600; letter-spacing: 2px;
    transition: var(--transition); cursor: pointer; border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-l) 100%);
    color: #fff;
    animation: fadeUp 1s ease-out 0.9s both;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(232,101,42,0.35); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--orange);
    color: var(--orange);
}
.btn-outline:hover { background: var(--orange); color: #fff; }

/* === 产品中心子栏目展开样式 === */
.has-sub { cursor: pointer; user-select: none; }
.has-sub::after { content: '▼'; font-size: 0.6rem; margin-left: 6px; opacity: 0.6; transition: transform 0.2s; display: inline-block; }
.has-sub.open::after { transform: rotate(180deg); }
.sub-items { display: none; padding-left: 20px; }
.sub-items.open { display: block; }
.sub-items a { font-size: 0.9rem !important; padding: 10px 16px !important; }
/* === 视频元素样式 === */
.gallery-item-video video {
    border-radius: 12px;
    background: #000;
}
.gallery-item-video .gallery-item-label {
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 8px 8px;
}

.video-container video {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
