/* ==============================
   全局基础样式
============================== */

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

    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont,
        'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;



    background-color: var(--bg-primary);

    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}


/* ==============================
   全局标题与文字
============================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
}



p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* 银色渐变文字 */
.text-silver {
    background: var(--text-silver);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 全局链接 */
a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}


/* ==============================
   页面容器
============================== */

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

/* 主内容区域 */
main {
    flex: 1;
    width: 100%;
}


/* ==============================
   液态玻璃按钮
============================== */

.btn,
button {
    background: var(--glass-bg);
    color: var(--text-main);

    border: 1px solid var(--glass-border);
    border-radius: 100px;

    padding: 0.8rem 1.8rem;

    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    box-shadow: none;
    cursor: pointer;

    transition: var(--transition);
}

.btn:hover,
button:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.4);

    color: #FFFFFF;

    box-shadow: none;
    transform: translateY(-1px);
}


/* ==============================
   液态玻璃导航栏
============================== */

nav {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;

    padding: 1.5rem 0;
    background: transparent;

    transition: var(--transition);
}

nav.scrolled {
    position: fixed;
    padding: 0.8rem 0;

    background: rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-bottom: var(--glass-border-light);

    box-shadow: none;
}

#navbar .container {
    max-width: none;
    padding: 0 4rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    height: 60px;

    display: flex;
    align-items: center;
    flex-shrink: 0;

    position: relative;
    z-index: 1001;
}

.logo img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    padding: 0.6rem 1rem;

    border-radius: 100px;
    transition: var(--transition);
}

.nav-links a:hover {
    background: var(--glass-bg-hover);
    color: #FFFFFF;
}

.lang-switch {
    position: relative;
    z-index: 9999;
}

#lang-btn {
    background: var(--glass-bg);
    color: var(--text-main);

    border: 1px solid var(--glass-border);

    padding: 0.4rem 1rem;
    border-radius: 100px;

    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    box-shadow: none;
}


.home-hero {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: 8rem clamp(1.25rem, 6vw, 5rem) clamp(7rem, 16vh, 12rem);
    background-image: url("image_1/back.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-hero-copy {
    width: min(100%, 62rem);
    text-align: center;
}

.home-hero-copy h1 {
    margin-bottom: 0.75rem;
}

.home-hero-copy p {
    max-width: 48rem;
    margin: 0 auto;
}

/* 序列帧展示区域 */
.train-experience {
    width: 100%;
    height: 380vh;
    position: relative;
    overflow: clip;
}

/* iframe 样式 */
.experience-frame {
    position: sticky;
    top: 0;
    display: block;
    width: 100%;
    height: 100vh;
    border: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* 历史内容 iframe 区块 */
.history-experience {
    width: 100%;
    height: 100vh;
    min-height: 480px;
    position: relative;
    background: transparent;
}

.history-experience iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
}

.back1-experience {
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 480px;
    overflow: hidden;
    background: transparent;
}

.back1-experience iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
}

.color-carousel-experience {
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 320px;
    overflow: hidden;
    background: transparent;
}

.color-carousel-experience iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* =====================================
   3D 模型展示与颜色定制分栏（80% / 20%）
===================================== */

.viewer-split-section {
    display: flex;
    width: 100%;
    height: 100vh;
    min-height: 580px;
    background: transparent;
}

.viewer-container {
    flex: 0 0 80%;
    width: 80%;
    height: 100%;
    position: relative;
}

.viewer-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: transparent;
}

.color-panel-container {
    flex: 0 0 20%;
    width: 20%;
    height: 100%;
    padding: 6.5rem 1.25rem 2rem;
    display: flex;
    align-items: center;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-left: none;
    overflow-y: auto;
}

.color-panel-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.color-panel-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.color-panel-subtitle {
    font-size: 0.78rem;
    opacity: 0.72;
    word-break: break-word;
}

.selection-group {
    padding: 1rem;
    border-radius: 16px;

    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.selection-group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.selection-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.selection-meta {
    display: block;
    font-size: 0.7rem;
    opacity: 0.65;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.selection-current-hex {
    font-size: 0.72rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;

    text-transform: uppercase;
}

.color-swatch-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

button.color-swatch-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;

    background: var(--swatch-color);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: relative;
    flex-shrink: 0;
}

button.color-swatch-btn:hover {
    background: var(--swatch-color);
    border-color: #ffffff;
    transform: translateY(-2px) scale(1.06);
}

button.color-swatch-btn.active {
    border-color: #111111;
    box-shadow: 0 0 0 2px #ffffff;
    transform: scale(1.08);
}

button.color-swatch-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.color-panel-actions {
    display: flex;
}

.reset-colors-btn {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
    text-align: center;
}

@media (max-width: 960px) {
    .viewer-split-section {
        flex-direction: column;
        height: auto;
    }

    .viewer-container {
        flex: none;
        width: 100%;
        height: 65vh;
    }

    .color-panel-container {
        flex: none;
        width: 100%;
        height: auto;
        padding: 1.5rem;
        border-left: none;
        border-top: 1px solid var(--glass-border);
    }
}


/* =====================================
   联系我们单元
   保留原始组件布局与样式
===================================== */

#contact {
    padding: 8rem 0 4rem;
}

#contact .container {
    opacity: 1;
    transform: none;
}

.contact-title {
    font-size: 3.5rem;
    margin-bottom: 4rem;
    text-align: center;
    font-weight: 700;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(252, 252, 252, 0);

    border-radius: 24px;
    padding: 2.5rem;

    box-shadow: none;
}

.contact-form-card {
    padding: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}


/* 联系表单输入框 */

#contact input,
#contact textarea {
    width: 100%;
    padding: 1rem 1.5rem;

    background: rgba(255, 255, 255, 0.1);

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;

    color: var(--text-main);
    font-size: 1rem;

    transition: var(--transition);
    outline: none;
}

#contact input:focus,
#contact textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);

    box-shadow: none;
}

#contact ::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

#contact .form-group {
    margin-bottom: 1.5rem;
}


/* 联系我们按钮 */

#contact .btn-primary {
    background: var(--primary-gradient);
    color: #000000;

    border: none;
    border-radius: 100px;

    padding: 1rem 2.5rem;

    box-shadow: none;
}

#contact .btn-primary:hover {
    transform: translateY(-3px);

    background: var(--primary-gradient);
    color: #000000;
    box-shadow: none;
}


/* 联系方式文字 */

#contact .contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

#contact .contact-details h4 {
    color: var(--text-muted);

    text-transform: uppercase;
    font-size: 0.7rem;

    margin-bottom: 0.5rem;
}

#contact .contact-details a {
    color: var(--primary);

    text-decoration: none;
    font-weight: 600;
}


/* 联系我们响应式布局 */

@media (max-width: 1024px) {
    .contact-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    #contact {
        padding: 5rem 0 3rem;
    }

    .contact-grid,
    .contact-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .contact-form-card {
        padding: 2rem;
    }
}


/* ==============================
   磨砂玻璃 Footer
============================== */

footer {
    position: relative;
    z-index: 20;

    width: 100%;
    margin-top: auto;

    padding: 4rem 0;

    background: rgba(255, 255, 255, 0.045);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-top: 1px solid var(--glass-border-light);

    box-shadow: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;

    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

footer p,
footer .footer-links a {
    color: var(--text-secondary);
}

footer .footer-links a:hover {
    color: #ffffff;
}


/* ==============================
   移动端导航
============================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* ==============================
   响应式布局
============================== */

@media (max-width: 768px) {

    .container {
        padding: 0 1.5rem;
    }

    #navbar .container {
        padding: 0 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(107, 107, 107, 0.88);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.5s;
        z-index: 1001;
    }

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

    #lang-btn {
        padding: 0.4rem 1rem;
    }
}
