/* 基础重置与变量定义 */
:root {
    --bg-color: #0d0d0d;
    --text-color: #e0e0e0;
    --text-muted: #888888;
    --accent-color: #D6B06A; /* 钛金属/高端品牌常用的香槟金/古铜色 */
    --border-color: #333333;
    --font-primary: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

ul {
    list-style: none;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 0 clamp(24px, 5vw, 72px);
    background: transparent; /* 改为完全透明 */
    z-index: 1000;
    flex-shrink: 0;
    /* 移除了高斯模糊和边框，确保完全不遮挡背景 */
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
    flex-shrink: 0;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px clamp(24px, 4vw, 60px);
    flex-shrink: 0;
}

nav ul li a {
    position: relative;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    color: #8E8C89;
    transition: color 0.3s ease;
    padding-left: 36px;
    flex-shrink: 0;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
}

.nav-icon {
    position: absolute;
    left: 0;
    right: auto;
    margin-right: 0;
    width: 26px;
    height: 26px;
    opacity: 0;
    transition: opacity 0.3s ease;
    object-fit: contain;
}

nav ul li a:hover .nav-icon,
nav ul li a.active .nav-icon {
    opacity: 1;
}


/* Header Actions (Shop & Search) */
.header-actions {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 30px);
    flex: 0 0 auto;
}

.shop-dropdown {
    position: relative;
}

.shop-btn {
    position: relative;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.shop-btn:hover {
    transform: scale(1.02);
}


.shop-icon, .shop-icon-hover {
    height: 32px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.shop-icon-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.shop-btn:hover .shop-icon {
    opacity: 0;
}

.shop-btn:hover .shop-icon-hover {
    opacity: 1;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 0;
    min-width: 130px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    margin-top: 15px;
}

/* Invisible bridge to keep hover active */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.shop-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #ccc;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.dropdown-content a:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

.lang-search {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ccc;
    font-size: 14px;
    letter-spacing: 1px;
}

.lang-btn, .search-btn {
    color: #ccc;
    display: flex;
    align-items: center;
    transition: color 0.3s;
    position: relative;
}

.lang-btn img {
    display: block;
}

.lang-btn::after {
    content: url('../images/nav-en-hover.svg');
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.lang-btn:hover::after {
    opacity: 1;
}

.lang-btn:hover, .search-btn:hover {
    color: var(--accent-color);
}

.divider {
    color: #444;
    font-size: 12px;
}

/* 页面通用区块 */
section {
    padding: clamp(80px, 10vh, 120px) clamp(20px, 5vw, 72px);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: clamp(32px, 4vw, 40px);
    font-weight: 300;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-muted);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 14px clamp(24px, 3vw, 40px);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    transition: all var(--transition-speed);
    cursor: pointer;
    background: transparent;
    text-align: center;
    white-space: nowrap;
}

.btn:hover {
    background: var(--accent-color);
    color: #fff;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
}

/* 页脚 */
.site-footer {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: #9a9a9a;
    background: #080808;
}

.site-footer-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #080808 center/cover no-repeat url('../images/footer-bg.webp?v=20260717');
}

.site-footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1680px;
    margin: 0 auto;
    padding: clamp(42px, 5vh, 64px) clamp(20px, 4vw, 56px) clamp(28px, 3vh, 40px);
    box-sizing: border-box;
}

.site-footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 48px);
}

.site-footer-brand {
    display: flex;
    align-items: stretch;
    gap: clamp(15px, 1.7vw, 24px);
    flex: 0 1 46%;
    min-width: 0;
}

.site-footer-logo img {
    display: block;
    height: clamp(40px, 3.21vw, 52px);
    width: auto;
}

.site-footer-brand-divider {
    width: 1px;
    flex-shrink: 0;
    background: linear-gradient(to bottom, transparent, rgba(214, 176, 106, 0.55), transparent);
}

.site-footer-slogan-cn {
    margin: 0 0 8px;
    font-size: clamp(12px, 0.98vw, 15px);
    font-weight: 500;
    color: #D6B06A;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.site-footer-slogan-en {
    margin: 0;
    font-size: clamp(9px, 0.64vw, 10px);
    color: rgba(214, 176, 106, 0.72);
    letter-spacing: 1.2px;
    line-height: 1.5;
    white-space: nowrap;
}

.site-footer-right {
    flex: 1 1 54%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 14px;
}

.site-footer-nav-link {
    font-size: clamp(13px, 1vw, 15px);
    color: #888;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.site-footer-nav-link:hover {
    color: #aaa;
}

.site-footer-nav-link.is-active {
    color: #D6B06A;
}

.site-footer-nav-link.is-active:hover {
    color: #F0D08A;
}

.site-footer-nav-sep {
    color: rgba(214, 176, 106, 0.45);
    font-size: 13px;
    user-select: none;
}

.site-footer-rule {
    width: 100%;
    max-width: 520px;
    height: 1px;
    margin: 0 0 12px;
    border: none;
    background: linear-gradient(to right, transparent, rgba(214, 176, 106, 0.45), transparent);
}

.site-footer-tagline {
    margin: 0 0 22px;
    font-size: clamp(10px, 0.78vw, 12px);
    letter-spacing: 2px;
    color: rgba(214, 176, 106, 0.62);
    text-align: right;
    width: 100%;
    max-width: 520px;
}

.site-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    width: 100%;
}

.site-footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #ccc;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-footer-social a:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.site-footer-social a img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.site-footer-top {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: opacity 0.25s ease;
    white-space: nowrap;
}

.site-footer-top:hover {
    opacity: 0.88;
}

.site-footer-top-icon {
    display: block;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.site-footer-top-text {
    color: #888;
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.25s ease;
}

.site-footer-top:hover .site-footer-top-text {
    color: #aaa;
}

.site-footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(20px, 4vw, 56px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.42);
    font-size: 12px;
    color: #777;
    flex-wrap: wrap;
}

.site-footer-beian {
    flex-basis: 100%;
    margin: 4px 0 0;
    display: flex;
    justify-content: center;
}

.site-footer-copy {
    margin: 0;
}

.site-footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.site-footer-legal a {
    color: #777;
    text-decoration: none;
    transition: color 0.25s ease;
}

.site-footer-legal a:hover {
    color: #aaa;
}

.site-footer-legal a.is-accent {
    color: #D6B06A;
}

.site-footer-legal a.is-accent:hover {
    color: #F0D08A;
}

.site-footer-legal-sep {
    color: #444;
    user-select: none;
}

.site-footer-beian-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #888;
    text-decoration: none;
    font-size: 12px;
}

.site-footer-beian-link:hover {
    color: #D6B06A;
}

.site-footer-beian-link img {
    width: 16px;
    height: 16px;
}

@media (max-width: 992px) {
    .site-footer-main {
        flex-direction: column;
        align-items: stretch;
    }

    .site-footer-brand {
        flex: none;
        width: 100%;
    }

    .site-footer-right {
        align-items: flex-start;
    }

    .site-footer-nav {
        justify-content: flex-start;
    }

    .site-footer-rule,
    .site-footer-tagline {
        max-width: none;
        text-align: left;
    }

    .site-footer-actions {
        justify-content: space-between;
    }

    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .header-actions {
        width: 100%;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.05);
    }

    header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 14px 20px 12px;
    }

    nav {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    nav ul {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 18px;
        min-width: max-content;
    }

    nav ul li a {
        font-size: 13px;
    }

    section {
        min-height: auto;
        padding: 120px 20px 72px;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 12px 16px 10px;
    }

    .logo img {
        height: 32px;
    }

    .btn {
        width: 100%;
        padding: 13px 18px;
        font-size: 13px;
        letter-spacing: 1px;
    }
}

/* 动画类 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

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

/* 占位图样式 */
.placeholder-img {
    background: #1a1a1a;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 14px;
    border: 1px dashed #333;
}

/* Crystal Pointer System - Default State (Ultra Premium) */
body {
    cursor: url("../images/cursor.svg") 0 0, auto !important;
}

/* Crystal Pointer System - Hover/Interactive State (Reverted to Default Pointer) */
a, button, .btn, .nav-btn, .feature-card, .timeline-node, .hex-label, input, select, textarea {
    cursor: pointer !important;
}



/* Inline Nav Search Styles */
.nav-search-container {
    position: relative;
    display: flex;
    align-items: center;
    color: #ccc;
    height: 32px;
}

.search-icon {
    cursor: pointer;
    transition: color 0.3s;
    flex-shrink: 0;
}

.nav-search-container:hover .search-icon,
.nav-search-container.focused .search-icon {
    color: var(--accent-color);
}

.nav-search-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    width: 0;
    padding: 0;
    opacity: 0;
    outline: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.3, 1);
    letter-spacing: 1px;
}

.nav-search-input::placeholder {
    color: #666;
}

.nav-search-container:hover .nav-search-input,
.nav-search-input:focus {
    width: 160px;
    opacity: 1;
    padding: 0 8px;
    margin-left: 8px;
    border-bottom-color: rgba(200, 150, 102, 0.4);
}

.nav-search-input:focus {
    border-bottom-color: var(--accent-color);
}

.nav-search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid #333;
    border-radius: 8px;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Invisible bridge */
.nav-search-results::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.nav-search-results.active {
    opacity: 1;
    visibility: visible;
}

.nav-search-results::-webkit-scrollbar {
    width: 4px;
}
.nav-search-results::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 2px;
}

.nav-search-results .search-result-item {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
    text-decoration: none;
    text-align: left;
}

.nav-search-results .search-result-item:last-child {
    border-bottom: none;
}

.nav-search-results .search-result-item:hover {
    background: rgba(255,255,255,0.05);
    padding-left: 25px;
}

.nav-search-results .search-result-title {
    font-size: 14px;
    color: #e0e0e0;
    margin-bottom: 4px;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-search-results .search-result-item:hover .search-result-title {
    color: var(--accent-color);
}

.nav-search-results .search-result-desc {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-search-results .search-no-results {
    color: #888;
    text-align: center;
    padding: 30px 0;
    font-size: 13px;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .nav-search-container:hover .nav-search-input,
    .nav-search-input:focus {
        width: 120px;
    }
    .nav-search-results {
        width: 240px;
        right: -50px;
    }
}

/* 图片懒加载占位 */
img.lazy-img,
.lazy-bg {
    background-color: #111;
}

img.lazy-img {
    min-width: 1px;
    min-height: 1px;
}

img.lazy-loaded {
    background-color: transparent;
}
