/* ==========================================
   鼎盛寄卖行 · 全局样式表
   赌桌绿奢华主题 · Casino Green Luxury
   ========================================== */

/* ==========================================
   色板速查（本文件使用）
   ----------------------------------------
   casino          #0a4d2c   主绿（导航、标题、主色）
   casino-light    #0e6b3e   亮绿（悬停、渐变亮端）
   casino-dark     #07361f   深绿（渐变深端）
   gold            #c9a961   主金（按钮、强调、装饰）
   gold-light      #d9bd7e   亮金（悬停亮端）
   gold-dark       #a68a45   深金（渐变深端）
   cream           #f5f0e1   米白（卡片、浅色区块）
   cream-dark      #e8dcc0   深米白（渐变端）
   ink             #0a1f14   深绿黑（页脚、反色区块）
   ========================================== */


/* ==========================================
   全局基础
   ========================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.75;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ==========================================
   标题系统
   ========================================== */
.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0a4d2c;
    line-height: 1.2;
    letter-spacing: 1px;
}
@media (min-width: 768px) {
    .page-title { font-size: 3rem; }
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a4d2c;
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: 1px;
}
/* 金色分隔线：奢华感的关键装饰 */
.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c9a961, #a68a45);
    margin: 14px auto 0;
    border-radius: 2px;
}
@media (min-width: 768px) {
    .section-title { font-size: 1.875rem; }
}

.section-subtitle {
    text-align: center;
    color: #6b7c6e;
    font-size: 0.875rem;
    margin-top: 8px;
}
@media (min-width: 768px) {
    .section-subtitle { font-size: 1rem; }
}

.subtitle-accent {
    color: #c9a961;
    font-weight: 600;
    letter-spacing: 2px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a4d2c;
}


/* ==========================================
   按钮系统
   ========================================== */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #c9a961 0%, #a68a45 100%);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.35);
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #d9bd7e 0%, #c9a961 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 169, 97, 0.5);
}

.btn-outline {
    display: inline-block;
    border: 2px solid #0a4d2c;
    color: #0a4d2c;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    background: transparent;
}
.btn-outline:hover {
    background: #0a4d2c;
    color: #fff;
    transform: translateY(-2px);
}

.btn-cta {
    display: inline-block;
    background: linear-gradient(135deg, #c9a961 0%, #a68a45 100%);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.35);
}
.btn-cta:hover {
    background: linear-gradient(135deg, #d9bd7e 0%, #c9a961 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(201, 169, 97, 0.45);
}


/* ==========================================
   卡片系统
   ========================================== */
.card-soft {
    background: #fff;
    border: 1px solid #e8e0cc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
/* 悬停时顶部金色细线，提升精致度 */
.card-soft::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c9a961, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card-soft:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(10, 77, 44, 0.12);
    border-color: rgba(201, 169, 97, 0.4);
}
.card-soft:hover::before {
    opacity: 1;
}

.card-cream {
    background: linear-gradient(180deg, #ffffff 0%, #f5f0e1 100%);
    border: 1px solid rgba(201, 169, 97, 0.25);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}
.card-cream:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(10, 77, 44, 0.15);
    border-color: #c9a961;
}


/* ==========================================
   区块背景
   ========================================== */

/* -------- Hero 区（顶部标题 banner） -------- */
.section-hero {
    background: linear-gradient(135deg, #f5f0e1 0%, #ffffff 50%, #e8dcc0 100%);
    position: relative;
    overflow: hidden;
}
/* 右上角金色光晕，提升奢华感 */
.section-hero::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

/* -------- 米白色区块 -------- */
.section-cream {
    background: #f5f0e1;
}

/* -------- 深绿黑反向区块（首页"关于我们"、流程用） -------- */
.section-cream-reverse {
    background: #0a1f14;
    color: #f5f0e1;
}
.section-cream-reverse .section-title,
.section-cream-reverse .section-subtitle,
.section-cream-reverse .card-title {
    color: #f5f0e1;
}
.section-cream-reverse .section-title::after {
    background: linear-gradient(90deg, #c9a961, #a68a45);
}

/* -------- 纯白区块 -------- */
.section-white {
    background: #ffffff;
}

/* -------- 品牌色区块（页脚、CTA） -------- */
.section-brand {
    background: linear-gradient(135deg, #0a4d2c 0%, #07361f 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
/* 顶部金色细线，提升质感 */
.section-brand::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a961, transparent);
    z-index: 1;
}


/* ==========================================
   强调元素
   ========================================== */
.border-accent-left {
    border-left: 4px solid #c9a961;
    padding-left: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    background: linear-gradient(90deg, #faf7ee 0%, #ffffff 100%);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.step-circle {
    background: linear-gradient(135deg, #0a4d2c 0%, #07361f 100%);
    color: #c9a961;
    border: 2px solid #c9a961;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(10, 77, 44, 0.3);
}


/* ==========================================
   导航
   ========================================== */
nav {
    box-shadow: 0 2px 12px rgba(10, 77, 44, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#mobileMenu {
    transition: all 0.3s ease;
}

.nav-link {
    color: #0a4d2c;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 4px;
    text-decoration: none;
}
.nav-link:hover {
    color: #c9a961;
}
/* 悬停时下方显示金色下划线 */
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #c9a961;
    transition: width 0.3s;
}
.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    display: block;
    padding: 0.6rem 0.5rem;
    color: #0a4d2c;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}
.mobile-nav-link:hover {
    color: #c9a961;
    background: rgba(245, 240, 225, 0.6);
}


/* ==========================================
   页脚专属
   ========================================== */
.footer-link {
    color: #e8dcc0;
    transition: color 0.2s ease;
    text-decoration: none;
}
.footer-link:hover {
    color: #c9a961;
}


/* ==========================================
   地图跳转区块（联系我们页）
   ========================================== */
.map-jump-block {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #f5f0e1;
}

/* 无图片时的降级样式 */
.map-jump-block:not(:has(img)) {
    background: linear-gradient(135deg, #f5f0e1 0%, #ffffff 50%, #e8dcc0 100%);
    text-align: center;
    transition: all 0.3s ease;
}
.map-jump-block:not(:has(img)):hover {
    background: linear-gradient(135deg, #e8dcc0 0%, #f5f0e1 50%, #d9bd7e 100%);
}

/* 有图片时的图片样式 */
.map-jump-block img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 悬浮按钮容器 */
.map-jump-block .btn-primary {
    pointer-events: none;
}

/* 鼠标悬停时按钮上浮 */
.map-jump-block:hover .btn-primary {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(201, 169, 97, 0.5);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .map-jump-block img {
        height: 16rem;
    }
}


/* ==========================================
   工具类
   ========================================== */
.text-preline {
    white-space: pre-line;
    word-break: break-word;
}

img {
    max-width: 100%;
    height: auto;
}

button:active {
    transform: scale(0.97);
}


/* ==========================================
   滚动条（金绿渐变）
   ========================================== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0e1;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0a4d2c, #c9a961);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0e6b3e, #d9bd7e);
}


/* ==========================================
   文字选中颜色（金色）
   ========================================== */
::selection {
    background: #c9a961;
    color: #0a1f14;
}
::-moz-selection {
    background: #c9a961;
    color: #0a1f14;
}

/* ============================================================
   导航栏品牌 Logo
   作用：赌桌绿主色 + 金色下划线，稳重又奢华
   ============================================================ */
.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a4d2c;
    letter-spacing: 2px;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}
/* 金色下划线，作为品牌 Logo 的点缀 */
.brand-logo::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c9a961, #a68a45);
    border-radius: 1px;
}
.brand-logo:hover {
    color: #c9a961;
}


/* ============================================================
   Hero 副标题（金色菱形装饰 + 深绿文字）
   作用：文字用赌桌绿保证可读性，两侧加金色菱形做点缀
   ============================================================ */
.subtitle-accent {
    color: #0a4d2c;
    font-weight: 600;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
    padding: 0 32px;
    text-align: center;
}
/* 左侧金色菱形 */
.subtitle-accent::before,
.subtitle-accent::after {
    content: "◆";
    color: #c9a961;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6em;
    line-height: 1;
}
.subtitle-accent::before {
    left: 0;
}
.subtitle-accent::after {
    right: 0;
}


/* ============================================================
   滚动条（米白轨道 + 赌桌绿滑块，悬停变金色）
   作用：简洁高级，与页面整体色调一致
   ============================================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #f5f0e1;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb {
    background: #0a4d2c;
    border-radius: 5px;
    border: 2px solid #f5f0e1;
}
::-webkit-scrollbar-thumb:hover {
    background: #c9a961;
}
/* Firefox 滚动条 */
html {
    scrollbar-color: #0a4d2c #f5f0e1;
    scrollbar-width: thin;
}