/* 萨斯贝尔官网 - 共享样式（深红主题 + 白色 LOGO） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #6b0f1a;          /* 深红主背景 */
    --color-bg-deep: #570c15;     /* 更深红（头部/底部） */
    --color-surface: #7a1423;     /* 卡片/面板 */
    --color-cream: #f0e0c4;       /* 深奶白色（轮播图两侧留白） */
    --color-primary: #d4af37;     /* 金色强调/按钮 */
    --color-primary-hover: #c19a2e;
    --color-text: #ffffff;
    --color-text-secondary: #f1d7d7;
    --color-border: rgba(255, 255, 255, 0.16);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---------- 头部 ---------- */
.header {
    width: 100%;
    height: 64px;
    background-color: var(--color-bg-deep);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;               /* 白色 LOGO */
    letter-spacing: 2px;
    text-decoration: none;
    white-space: nowrap;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 28px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.desktop-nav a:hover {
    color: var(--color-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 语言切换 */
.lang-switcher {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-dropdown {
    position: absolute;
    top: 42px;
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    list-style: none;
    min-width: 130px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    display: none;
    overflow: hidden;
}

.lang-dropdown.active {
    display: block;
}

.lang-dropdown li {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text);
}

.lang-dropdown li:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* 移动端菜单 */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--color-bg-deep);
    border-bottom: 1px solid var(--color-border);
    z-index: 999;
    display: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 10px 0;
}

.mobile-menu li {
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 16px;
}

/* ---------- 轮播图 ---------- */
.carousel {
    position: relative;
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
    overflow: hidden;
    background-color: var(--color-cream);
    touch-action: pan-y; /* 横向滑动交给 JS 切换，纵向仍可滚动页面 */
}

.carousel-slider {
    position: absolute;
    inset: 0;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background: center/contain no-repeat var(--color-cream); /* 图片两侧留白为奶白色 */
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 16px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.32);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--color-primary);
    transform: scale(1.25);
}

.carousel-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9b8a78;
    font-size: 18px;
    text-align: center;
    padding: 20px;
}

/* ---------- 子页标题栏 ---------- */
.page-head {
    padding: 30px 15px 0;
    text-align: center;
}

.page-head h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ---------- 联系我们 ---------- */
.page {
    padding: 40px 0;
}

.contact-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px;
}

.contact-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-label {
    flex-shrink: 0;
    width: 96px;
    color: var(--color-text-secondary);
    font-size: 15px;
}

.contact-value {
    flex: 1;
    color: var(--color-text);
    font-size: 16px;
    word-break: break-word;
}

.contact-empty {
    text-align: center;
    color: var(--color-text-secondary);
    padding: 20px 0;
}

/* ---------- 联系我们页：上下 bar 深红不变，中间深奶白 ---------- */
body.contact-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-cream);
}

body.contact-page .header,
body.contact-page .footer {
    flex-shrink: 0;
}

body.contact-page .page {
    flex: 1 0 auto; /* 撑开中间，把底部 bar 推到页面最底 */
}

body.contact-page .page-head h1 {
    color: var(--color-bg-deep);
}

body.contact-page .contact-card {
    background: #fffdf8;
    border: 1px solid rgba(87, 12, 21, 0.14);
    box-shadow: 0 6px 24px rgba(87, 12, 21, 0.08);
}

body.contact-page .contact-row {
    border-bottom-color: rgba(87, 12, 21, 0.10);
}

body.contact-page .contact-label {
    color: #9b8a78;
}

body.contact-page .contact-value {
    color: #570c15;
}

body.contact-page .contact-empty {
    color: #9b8a78;
}

/* ---------- 底部 ---------- */
.footer {
    padding: 28px 15px;
    background-color: var(--color-bg-deep);
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.9;
}

.footer a {
    color: var(--color-text-secondary);
    text-decoration: none;
    margin: 0 8px;
}

.footer a:hover {
    color: var(--color-primary);
}

/* ---------- 响应式 ---------- */
@media (min-width: 768px) {
    .header {
        height: 80px;
    }
    .logo {
        font-size: 26px;
    }
    .desktop-nav {
        display: flex;
    }
    .mobile-menu-btn {
        display: none;
    }
    .mobile-menu {
        top: 80px;
    }
    .carousel {
        min-height: calc(100vh - 80px);
        min-height: calc(100dvh - 80px);
    }
    .page-head h1 {
        font-size: 34px;
    }
    .page {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .contact-card {
        padding: 24px 20px;
    }
    .contact-label {
        width: 80px;
    }
}
