/* ============================================================
   一群鲸珠宝 - 企业官网样式 v2.0
   配色方案：
   主色:    #08213D  (深蓝)
   辅助色:  #123D63  (宝石蓝)
   点缀色:  #C9A24D  (金色)
   背景色:  #F7F9FB  (浅灰白)
   正文色:  #333333
   ============================================================ */

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

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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    line-height: 1.7;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 通用板块 --- */
.section { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: #C9A24D;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 500;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #08213D;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #C9A24D, #123D63);
    margin: 0 auto;
    border-radius: 2px;
}

/* --- 按钮 --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #C9A24D, #b8923e);
    color: #fff;
    border-color: #C9A24D;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #b8923e, #a68230);
    border-color: #b8923e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 162, 77, 0.35);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: #08213D;
    border-color: #08213D;
}
.btn-outline-dark:hover {
    background: #08213D;
    color: #fff;
}

.tel-link { color: #123D63; font-weight: 600; }
.tel-link:hover { color: #C9A24D; }

/* ============================================================
   顶部导航栏
   ============================================================ */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: rgba(8, 33, 61, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header.scrolled {
    background: rgba(8, 33, 61, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}
.logo-icon { color: #C9A24D; }

.nav-list { display: flex; align-items: center; gap: 8px; }

.nav-link {
    padding: 8px 16px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px; height: 2px;
    background: #C9A24D;
    border-radius: 1px;
    transition: transform 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: translateX(-50%) scaleX(1); }

/* 手机端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle .bar {
    width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s ease;
}
.menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   首屏 Banner
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 深蓝渐变背景 */
.hero-bg-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #060f1a 0%, #08213D 30%, #0d2d56 55%, #123D63 80%, #08213D 100%);
    z-index: 0;
}

/* 装饰元素 - 珠宝光晕 */
.hero-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero-deco-1 {
    top: 15%; right: 12%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(201, 162, 77, 0.08) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}
.hero-deco-2 {
    bottom: 10%; left: 8%;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(18, 61, 99, 0.3) 0%, transparent 70%);
    animation: heroGlow 6s ease-in-out infinite alternate-reverse;
}
.hero-deco-3 {
    top: 40%; left: 30%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(201, 162, 77, 0.05) 0%, transparent 70%);
    animation: heroGlow 10s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
    100% { transform: scale(1.15) translate(15px, -8px); opacity: 1; }
}

.hero-content { position: relative; z-index: 2; text-align: center; }

.hero-glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 60px 50px;
    max-width: 700px;
    margin: 0 auto;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 6px;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 3px;
    margin-bottom: 36px;
    line-height: 1.8;
}
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 2px;
}
.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================================
   关于我们
   ============================================================ */
.about { background: #fff; }

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image {
    border-radius: 12px;
    overflow: hidden;
}
.about-img-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #08213D 0%, #123D63 50%, #1a4d7a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.about-img-frame::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(201, 162, 77, 0.2);
    border-radius: 8px;
}
.about-img-icon { color: rgba(201, 162, 77, 0.6); position: relative; z-index: 1; }
.about-img-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.about-text p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    text-indent: 2em;
}
.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 36px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.stat { text-align: center; flex: 1; }
.stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: #08213D;
    margin-bottom: 6px;
}
.stat-label { font-size: 0.8rem; color: #888; letter-spacing: 1px; }

/* ============================================================
   主营产品
   ============================================================ */
.products { background: #F7F9FB; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px 28px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid #e8ecf0;
    position: relative;
    overflow: hidden;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, #C9A24D, #123D63);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(8, 33, 61, 0.1);
}
.product-card:hover::before { transform: scaleX(1); }

.product-img-frame {
    width: 160px; height: 160px;
    margin: 0 auto 24px;
    background: linear-gradient(145deg, #e8f0f8 0%, #d5e3f0 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.4s ease;
    color: #123D63;
}
.product-card:hover .product-img-frame {
    transform: scale(1.06);
    background: linear-gradient(145deg, #08213D 0%, #123D63 100%);
    color: #C9A24D;
}
.product-img-label {
    font-size: 0.72rem;
    color: #888;
    letter-spacing: 1px;
}
.product-card:hover .product-img-label { color: rgba(255,255,255,0.5); }

.product-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #08213D;
    margin-bottom: 14px;
    letter-spacing: 1px;
}
.product-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
}

/* ============================================================
   产品优势
   ============================================================ */
.advantages {
    background: linear-gradient(180deg, #08213D 0%, #123D63 100%);
    color: #fff;
}
.advantages .section-title { color: #fff; }
.advantages .section-divider {
    background: linear-gradient(90deg, #C9A24D, rgba(255, 255, 255, 0.3));
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.advantage-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
}
.advantage-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}
.advantage-icon-wrap {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    background: rgba(201, 162, 77, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A24D;
}
.advantage-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 1px;
}
.advantage-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* ============================================================
   工艺流程 - 时间轴
   ============================================================ */
.process { background: #fff; }

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}
.timeline-line {
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #e8ecf0, #123D63, #e8ecf0);
    transform: translateX(-50%);
}
.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 48px;
    position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 48px; height: 48px;
    background: #fff;
    border: 3px solid #123D63;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}
.timeline-item:hover .timeline-dot {
    background: #123D63;
    border-color: #C9A24D;
}
.timeline-number {
    font-size: 1rem;
    font-weight: 700;
    color: #123D63;
    transition: color 0.3s ease;
}
.timeline-item:hover .timeline-number { color: #fff; }

.timeline-content {
    width: calc(50% - 60px);
    padding: 24px 28px;
    background: #F7F9FB;
    border-radius: 10px;
    border: 1px solid #e8ecf0;
    transition: all 0.3s ease;
}
.timeline-item:hover .timeline-content {
    box-shadow: 0 10px 30px rgba(8, 33, 61, 0.08);
    border-color: #d5e3f0;
}
.timeline-content h3 {
    font-size: 1.1rem;
    color: #08213D;
    margin-bottom: 8px;
    font-weight: 600;
}
.timeline-content p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.7;
}

/* ============================================================
   企业实力
   ============================================================ */
.strength { background: #F7F9FB; }

.strength-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.strength-card {
    text-align: center;
    padding: 40px 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    transition: all 0.4s ease;
}
.strength-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(8, 33, 61, 0.1);
    border-color: #d5e3f0;
}
.strength-icon-wrap {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(145deg, #e8f0f8 0%, #d5e3f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #123D63;
    transition: all 0.4s ease;
}
.strength-card:hover .strength-icon-wrap {
    background: linear-gradient(145deg, #08213D 0%, #123D63 100%);
    color: #C9A24D;
}
.strength-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #08213D;
    margin-bottom: 8px;
}
.strength-label {
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 1px;
}

/* ============================================================
   联系我们
   ============================================================ */
.contact { background: #F7F9FB; }

.contact-content { max-width: 900px; margin: 0 auto; }

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.contact-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    border: 1px solid #e8ecf0;
    transition: all 0.4s ease;
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(8, 33, 61, 0.08);
    border-color: #d5e3f0;
}
.contact-card-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(145deg, #e8f0f8 0%, #d5e3f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #123D63;
}
.contact-card h4 {
    font-size: 0.95rem;
    color: #08213D;
    margin-bottom: 10px;
    font-weight: 600;
}
.contact-card p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
}

.contact-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* 预留区域 */
.contact-reserve {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 20px;
}
.reserve-map, .reserve-qr {
    background: #fff;
    border: 2px dashed #d5e3f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.reserve-map { min-height: 260px; }
.reserve-qr { min-height: 260px; }

/* 复制提示 */
.copy-toast {
    position: fixed;
    bottom: 40px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #08213D;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}
.copy-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
    background: #08213D;
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}
.footer-logo .logo-icon { color: #C9A24D; }
.footer-desc {
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.4);
}
.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   回到顶部
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 44px; height: 44px;
    background: rgba(8, 33, 61, 0.9);
    color: #C9A24D;
    border: 1px solid rgba(201, 162, 77, 0.3);
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
    background: #123D63;
    transform: translateY(-3px);
}

/* ============================================================
   响应式 - 平板（≤1024px）
   ============================================================ */
@media (max-width: 1024px) {
    .products-grid,
    .advantages-grid,
    .strength-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title { font-size: 2.8rem; }
    .about-content { gap: 40px; }
}

/* ============================================================
   响应式 - 手机（≤768px）
   ============================================================ */
@media (max-width: 768px) {
    .section { padding: 70px 0; }
    .section-title { font-size: 1.7rem; }
    .section-header { margin-bottom: 40px; }

    /* 导航 */
    .menu-toggle { display: flex; }
    .nav {
        position: fixed;
        top: 72px; left: 0; width: 100%;
        background: rgba(8, 33, 61, 0.98);
        backdrop-filter: blur(12px);
        padding: 20px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav.open { max-height: 500px; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-link {
        display: block;
        padding: 14px 24px;
        font-size: 1rem;
        border-radius: 0;
    }
    .nav-link::after { display: none; }

    /* Banner */
    .hero-glass { padding: 40px 28px; }
    .hero-title { font-size: 2rem; letter-spacing: 3px; }
    .hero-subtitle { font-size: 0.9rem; letter-spacing: 1px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-scroll { display: none; }

    /* 关于我们 */
    .about-content { grid-template-columns: 1fr; gap: 30px; }
    .about-text p { text-indent: 0; }
    .about-stats { justify-content: space-around; }

    /* 产品 */
    .products-grid { grid-template-columns: 1fr; }
    .product-card { padding: 30px 24px; }
    .product-img-frame { width: 140px; height: 140px; }

    /* 优势 */
    .advantages-grid { grid-template-columns: 1fr; }

    /* 工艺流程 - 手机单列 */
    .timeline-line { left: 24px; }
    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 70px;
    }
    .timeline-dot { left: 24px; transform: translateX(-50%); }
    .timeline-content { width: 100%; }

    /* 企业实力 */
    .strength-grid { grid-template-columns: repeat(2, 1fr); }

    /* 联系我们 */
    .contact-cards { grid-template-columns: 1fr; }
    .contact-actions { flex-direction: column; }
    .contact-actions .btn { width: 100%; }
    .contact-reserve { grid-template-columns: 1fr; }

    /* 回到顶部 */
    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

/* ============================================================
   响应式 - 小屏手机（≤480px）
   ============================================================ */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 60px 0; }
    .section-title { font-size: 1.5rem; }
    .hero-title { font-size: 1.7rem; }
    .hero-subtitle { font-size: 0.85rem; }
    .btn { padding: 12px 24px; font-size: 0.88rem; }
    .about-stats { flex-direction: column; gap: 20px; }
    .strength-grid { grid-template-columns: 1fr; }
}
