/* --- 全局变量与重置 --- */
:root {
    --gold: #D4AF37;       /* 标准金 */
    --gold-light: #F4E4BC; /* 浅金 */
    --gold-dark: #B8860B;  /* 深金 */
    --black: #0D0D0D;      /* 深黑 */
    --dark-bg: #1A1A1A;    /* 板块深色背景 */
    --light-bg: #F9F9F9;   /* 板块浅色背景 */
    --text-dark: #333333;  /* 浅色背景下的深色字 */
    --text-light: #DDDDDD; /* 深色背景下的浅色字 */
    --container-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', "Microsoft YaHei", sans-serif;
    line-height: 1.8; 
    font-size: 16px;  /* 统一基准字号 */
    color: var(--text-dark);
    background-color: var(--black);
}
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 1. 页头 (150px 高度) --- */
.header {
    height: 150px; /* 严格按图片要求 */
    background-color: var(--black);
    border-bottom: 2px solid var(--gold);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { text-decoration: none; }
/* --- 优化后的标题样式 --- */
.logo h1 {
    font-weight: 800;          /* 增加字重，更有档案厚重感 */
    line-height: 1.1;          /* 紧凑行高 */
    letter-spacing: -0.02em;   /* 收紧字间距，解决英文太长的问题 */
    margin-bottom: 4px;
    
    /* 金色渐变效果 */
    background: linear-gradient(to bottom, #fdf5e6 0%, var(--gold) 40%, var(--gold-dark) 60%, #8b6508 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* 针对不同语言微调字号 */
body.mode-cn .logo h1, 
body.mode-tw .logo h1 {
    font-size: 28px;           /* 中文保持适中 */
}

body.mode-en .logo h1 {
    font-size: 24px;           /* 英文自动缩小，防止换行或过长 */
    max-width: 400px;          /* 限制宽度，使其在必要时更整齐 */
}

/* 隐藏非当前语言的 span */
.logo h1 .lang-cn, 
.logo h1 .lang-tw, 
.logo h1 .lang-en { 
    display: none; 
}

body.mode-cn .logo h1 .lang-cn { display: block; }
body.mode-tw .logo h1 .lang-tw { display: block; }
body.mode-en .logo h1 .lang-en { display: block; }
/* 给大标题增加金色渐变效果 */
.logo h1 {
    background: linear-gradient(to bottom, #fdf5e6 0%, var(--gold) 40%, var(--gold-dark) 60%, #8b6508 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.logo .subtitle {
    color: #888;
    font-size: 14px;
    letter-spacing: 1px;
}

.header-right { display: flex; align-items: center; gap: 30px; }
.nav-list { display: flex; list-style: none; gap: 25px; }
.nav-link {
    color: #FFF;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}
.nav-link:hover { color: var(--gold); }

.lang-switch {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

/* 移动端菜单按钮（默认隐藏） */
.hamburger-menu { display: none; }


/* --- 2. 图片滚动区域 (600px 高度) --- */
.hero-section {
    background: #000;
    position: relative;
}

.slider-container {
    width: 100%;
    height: 600px; /* 严格按图片要求 */
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.8s ease;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}


/* --- 通用板块样式 --- */
html {
    scroll-behavior: smooth; /* 让跳转过程变平滑 */
}

.section { 
    padding: 60px 0; 
    /* 关键修复：页头150px + 10px间隙 = 160px */
    scroll-margin-top: 150px; 
}

.section-light { background-color: var(--light-bg); color: var(--text-dark); }
.section-dark { background-color: var(--dark-bg); color: var(--text-light); }

.section-header { text-align: center; margin-bottom: 40px; }
.section-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--gold); /* 所有大标题统一金色 */
}
/* 浅色背景下标题稍微加深一点以便阅读，或者保持金色 */
.section-light .section-title { 
    color: var(--gold-dark); 
    text-shadow: 0 1px 1px rgba(0,0,0,0.1); 
}


/* --- 3. 缘起 (3列横向) --- */
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.col-title {
    color: var(--gold-dark);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
    border-left: 4px solid var(--gold);
    padding-left: 10px;
}
/* 深色背景下的标题 */
.section-dark .col-title { color: var(--gold); }

.col-text {
    font-size: 16px; /* 由 17px 改回 16px */
    text-align: justify;
    line-height: 1.8;
}
}

.auth-text p {
    margin-bottom: 10px;
    font-size: 16px; /* 鉴真部分的描述也同步放大 */
    color: #ccc;
}

/* 首行缩进逻辑 - 已修复 */
.text-indent-block .col-text span {
    /* display: block;  <-- 已删除，修复了多语言重叠问题 */
    text-indent: 2em; 
}


/* --- 4. 缘起部分图片展示 (修改为 3列2行 布局) --- */
.mint-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 核心修改：由 5 改为 3 列 */
    gap: 20px;                             /* 增大间距，显得更大气 */
    margin-top: 30px;
    width: 100%;                           /* 确保撑满 1200px 容器两边 */
}

.mint-gallery img {
    width: 100%;                           /* 宽度自动填充列宽 */
    aspect-ratio: 16 / 9;                  /* 核心修改：强制 16:9 比例，确保所有图片高度绝对一致 */
    object-fit: cover;                     /* 即使原始图片比例稍有偏差，也会自动裁剪填充而不变形 */
    border-radius: 4px;
    border: 1px solid var(--gold-dark);    /* 保持金色边框风格 */
    opacity: 0.95;                         /* 略微透明度，增加档案感 */
    transition: all 0.3s ease;             /* 过渡动画 */
    cursor: pointer;
}

.mint-gallery img:hover {
    opacity: 1;
    transform: translateY(-5px);           /* 鼠标悬停上浮 */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); /* 增加投影 */
    border-color: var(--gold);             /* 悬停边框变亮 */
}

/* 适配手机端：改为 2 列排列，防止 3 列太拥挤 */
@media (max-width: 768px) {
    .mint-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ★★★ 新增：铸造过程大图 (3张图布局) ★★★ */
.process-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 强制3列 */
    gap: 20px;         /* 图片之间的间距 */
    margin-bottom: 50px; /* 图片和下方文字的距离 */
}

.process-gallery img {
    width: 100%;
    height: 220px;     /* 高度设置得比原来大，显得更有气势 */
    object-fit: cover; /* 保证图片填满不变形 */
    border-radius: 6px;
    border: 1px solid #444; /* 深色背景下用深灰边框 */
    opacity: 0.9;
    transition: all 0.3s;
}

.process-gallery img:hover {
    opacity: 1;
    border-color: var(--gold); /* 鼠标悬停变金色边框 */
    transform: translateY(-5px); /* 微微上浮效果 */
}


.icon-title { 
    border: none; 
    padding-left: 0; 
    font-size: 20px; 
    display: flex;
    align-items: center;
    gap: 10px;
}


/* --- 5. 规格 (左右卡片) --- */
.specs-wrapper {
    display: flex;
    gap: 40px;
}

.spec-card {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.spec-card-title {
    color: var(--gold-dark);
    border-left: 4px solid var(--gold-dark);
    padding-left: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td {
    padding: 7px 0; /* 已修复：收紧表格行距 */
    border-bottom: 1px solid #EEE;
    font-size: 16px;
}
/* 左侧 Key 加粗 */
.spec-table td:first-child {
    font-weight: bold;
    color: #444;
    width: 100px; /* 保持左列宽度一致 */
}
/* 右侧 Value 右对齐 */
.spec-table td:last-child {
    text-align: right;
    color: #000;
}


/* --- 6. 鉴真 (左文右框) --- */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start; /* 顶部对齐 */
}

.gold-subtitle {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.auth-text p {
    margin-bottom: 10px;
    font-size: 16px;
    color: #ccc; /* 浅灰色文字 */
}
.auth-text b { color:#E0E0E0; }

/* === 鉴真查询框样式 === */
.auth-box {
    background-color: var(--black); /* 黑色背景 */
    border: 1px solid var(--gold);  /* 1px 金色实线边框 */
    border-radius: 12px;            /* 圆角 */
    padding: 40px;                  /* 内边距 */
    box-shadow: none;               /* 去除阴影，保持扁平 */
}

.auth-box-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--gold); /* 标题金色 */
    font-weight: bold;
    letter-spacing: 2px;
}

.form-group { margin-bottom: 20px; }

.auth-label {
    display: block;
    font-weight: normal;
    margin-bottom: 10px;
    color: #FFFFFF; /* 白色标签文字 */
    font-size: 16px;
}

.auth-input {
    width: 100%;
    padding: 12px 15px;
    background: #333333; /* 深灰色输入框背景 */
    border: 1px solid #444; /* 微弱的深灰边框 */
    color: #fff; /* 输入文字白色 */
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.auth-input:focus {
    border-color: var(--gold); /* 聚焦时边框变金 */
}

/* 占位符颜色 */
.auth-input::placeholder { color: #888; }

.auth-btn {
    width: 100%;
    padding: 12px;
    background: var(--gold); /* 金色按钮背景 */
    color: #000;             /* 黑色按钮文字 */
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: opacity 0.3s;
}

.auth-btn:hover {
    opacity: 0.9;
}

.verify-msg {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #ff4d4d; /* 红色报错文字 */
    font-weight: normal;
    min-height: 24px;
}


/* --- 7. 媒评 (列表) --- */
.media-list { list-style: none; padding: 0 20px; }
.media-list li {
    margin-bottom: 10px;      /* 已修复：拉近条目间距 */
    font-size: 16px;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 8px;      /* 已修复：虚线贴近一点 */
    line-height: 1.5;         /* 已修复：文字行距变紧凑 */
}
.media-list a { 
    color: var(--gold-dark); 
    text-decoration: none; 
    margin-left: 10px;
    font-weight: 500;
}
.media-list a:hover { text-decoration: underline; color: var(--gold); }


/* --- 8. 页脚 (黑色背景) --- */
.footer {
    background-color: var(--black);
    color: #888;
    padding: 50px 0;
    font-size: 15px;
    border-top: 1px solid #222;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a, .footer-email a {
    color: #888;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s;
}
.footer-links a:hover, .footer-email a:hover { color: var(--gold); }

.footer-copy { 
    letter-spacing: 1px; 
    text-align: center;
}


/* --- 多语言控制 --- */
.lang-cn, .lang-tw, .lang-en { display: none; }
body.mode-cn .lang-cn { display: block; }
body.mode-tw .lang-tw { display: block; }
body.mode-en .lang-en { display: block; }

/* 表格内部的多语言显示修复 */
body.mode-cn tbody.lang-cn { display: table-row-group; }
body.mode-tw tbody.lang-tw { display: table-row-group; }
body.mode-en tbody.lang-en { display: table-row-group; }


/* --- 响应式适配 --- */
@media (max-width: 768px) {
    .header { height: auto; padding: 15px 0; }
    .header-inner { flex-wrap: wrap; }
    
    .header-right { 
        display: none; 
        width: 100%; 
        flex-direction: column; 
        margin-top: 20px; 
        background: #111;
        padding: 20px;
    }
    .header-right.active { display: flex; }
    
    .nav-list { flex-direction: column; text-align: center; width: 100%; }
    
    .hamburger-menu { 
        display: flex; 
        flex-direction: column; 
        gap: 5px; 
        background: none; 
        border: none; 
        cursor: pointer;
    }
    .hamburger-menu span { width: 25px; height: 3px; background: var(--gold); }
    
    /* 移动端改为单列 */
    .grid-3-col, .specs-wrapper, .auth-layout { 
        grid-template-columns: 1fr; 
        flex-direction: column; 
    }
    
    /* 缘起部分的5张图在手机上改为3列，或者你可以改1列 */
    .mint-gallery { grid-template-columns: repeat(3, 1fr); }
    
    /* 新的铸造过程图在手机上改为单列 */
    .process-gallery {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .footer-flex { flex-direction: column; text-align: center; }
    .footer-links a { display: inline-block; margin: 5px 10px; }
}