/* ========================================
   常德宏大宾馆企业官网 - 全局样式
   ======================================== */

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.7;
    color: #3a3028;
    background: radial-gradient(circle at 20% 20%, rgba(255, 248, 235, 0.7), transparent 25%), 
                radial-gradient(circle at 80% 0%, rgba(255, 236, 205, 0.6), transparent 30%), 
                #fffdf8;
}

/* 颜色变量 */
:root {
    --primary-color: #B45309;
    --secondary-color: #78350F;
    --accent-color: #D97706;
    --sand: #FEF3C7;
    --stone: #44403C;
    --text-dark: #3A2F2A;
    --text-muted: #6B5B52;
    --line-color: rgba(120, 53, 15, 0.15);
    --panel: rgba(255, 250, 240, 0.9);
    --border-color: rgba(120, 53, 15, 0.2);
    --shadow-soft: 0 10px 40px rgba(68, 64, 60, 0.12);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    letter-spacing: 0.02em;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

h2 {
    font-size: 2.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

h3 {
    font-size: 1.45rem;
    margin-bottom: 12px;
}

h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

/* 段落和文本 */
p {
    margin-bottom: 14px;
    line-height: 1.9;
    color: var(--text-dark);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.25s ease;
}

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

/* 容器和布局 */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.col {
    flex: 1;
    min-width: 260px;
}

.col-2 {
    flex: 0 0 calc(50% - 11px);
}

.col-3 {
    flex: 0 0 calc(33.333% - 15px);
}

.col-4 {
    flex: 0 0 calc(25% - 15px);
}

/* 顶部预订栏与页眉 */
.top-reservation {
    /* 隐藏导航上方的快捷预订条 */
    display: none;
    background: var(--sand);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.top-reservation .booking-inline {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.booking-inline .field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px;
}

.booking-inline label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.booking-inline input,
.booking-inline select {
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--text-dark);
    min-width: 150px;
}

.booking-inline input:focus,
.booking-inline select:focus {
    outline: none;
}

.price-field strong {
    color: var(--secondary-color);
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.booking-extra {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.booking-extra .divider {
    width: 1px;
    height: 18px;
    background: var(--border-color);
}

header {
    background: #fff;
    color: var(--text-dark);
    padding: 12px 0 8px;
    border-bottom: 1px solid var(--line-color);
    position: sticky;
    top: 0;
    z-index: 1200;
    box-shadow: 0 12px 40px rgba(68, 64, 60, 0.06);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fef3c7, #f1d7a2);
    border: 1px solid var(--border-color);
    display: grid;
    place-items: center;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.logo-text .main {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo-text .sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-info {
    display: flex;
    gap: 18px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info strong {
    color: var(--secondary-color);
}

/* 移动端导航按钮 */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fffdf8;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 导航菜单 */
nav {
    border-top: 1px solid var(--line-color);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

nav li {
    flex: 0 0 auto;
}

nav a {
    display: block;
    padding: 12px 18px;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 10px;
}

nav a:hover,
nav a.active {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.12), rgba(120, 53, 15, 0.1));
    color: var(--secondary-color);
}

/* 页脚 */
footer {
    background: #2b201a;
    color: #f4e8d9;
    padding: 50px 0 26px;
    margin-top: 80px;
}

footer h4 {
    color: #f3d7b1;
    margin-bottom: 16px;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 10px;
}

footer a {
    color: #e8ddcf;
}

footer a:hover {
    color: #fcd09c;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 32px;
    padding-top: 18px;
    text-align: center;
    font-size: 0.95rem;
    color: #d8cfc5;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 26px;
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn:hover {
    background-color: #c05d0c;
    box-shadow: 0 12px 30px rgba(180, 83, 9, 0.3);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--border-color);
}

.btn-ghost:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: rgba(180, 83, 9, 0.08);
}

.btn-light {
    background: #fffaf1;
    color: var(--secondary-color);
    border-color: var(--border-color);
}

.btn-light:hover {
    border-color: var(--secondary-color);
}

/* 标签与标识 */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(120, 53, 15, 0.08);
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff3e0;
    color: var(--secondary-color);
    font-size: 0.85rem;
    border: 1px solid rgba(120, 53, 15, 0.12);
}

/* 区域与版式 */
.section {
    padding: 70px 0;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 26px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.divider {
    height: 1px;
    background: var(--line-color);
    margin: 28px 0;
}

/* 卡片样式 */
.card {
    background: #fffdf8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(120, 53, 15, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(68, 64, 60, 0.15);
    border-color: rgba(120, 53, 15, 0.18);
}

.card-image {
    width: 100%;
    height: 230px;
    overflow: hidden;
    background-color: #f2eadf;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.card:hover .card-image img {
    transform: scale(1.04);
}

.card-body {
    padding: 20px 22px 22px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.65;
}

/* 主视觉 */
.hero {
    position: relative;
    min-height: 520px;
    display: grid;
    align-items: center;
    background: url('../images/hotel_exterior_day.png') center/cover no-repeat;
    color: #fffaf1;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
}

.page-hero {
    position: relative;
    padding: 120px 0 80px;
    color: #fffaf1;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(26, 16, 10, 0.7), rgba(68, 32, 14, 0.35));
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    color: #fffaf1;
    margin-bottom: 12px;
}

.page-hero p {
    color: #f6e8d5;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(17, 10, 6, 0.65), rgba(68, 32, 14, 0.3));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 34px;
    align-items: center;
}

.hero-headline {
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-headline::before {
    content: "";
    display: inline-block;
    width: 38px;
    height: 1px;
    background: #fcd7a0;
}

.hero p {
    color: #f6e8d5;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 14px 16px;
}

.hero-stat strong {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.hero-carousel {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    position: relative;
}

.hero-dots {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: flex;
    gap: 6px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.hero-dots button.active {
    background: #fcd7a0;
}

/* 详情页通用 */
.content-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.spec-list {
    list-style: none;
    padding-left: 0;
    margin: 14px 0;
}

.spec-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    color: var(--text-dark);
}

.spec-list li span:last-child {
    color: var(--secondary-color);
    font-weight: 600;
}

.panorama {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.panorama img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    transition: object-position 0.2s ease;
}

/* 房型横滑 */
.room-carousel {
    position: relative;
}

.room-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}

.room-track .card {
    scroll-snap-align: start;
}

.carousel-nav {
    position: absolute;
    top: -52px;
    right: 0;
    display: flex;
    gap: 10px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fffdf8;
    cursor: pointer;
    color: var(--secondary-color);
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-soft);
}

/* 餐饮与左右分栏 */
.split-block {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 26px;
    align-items: center;
}

.split-block .visual {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.split-block .visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-list {
    display: grid;
    gap: 10px;
}

.highlight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 243, 224, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(120, 53, 15, 0.08);
}

/* 会议规格 */
.table-wrapper {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #fffef7;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

table thead {
    background: #fef3c7;
    color: var(--secondary-color);
}

table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
}

table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

table tbody tr:hover {
    background-color: #fff7e8;
}

/* 图片网格 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin: 26px 0;
}

.image-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.image-grid-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-grid-item:hover img {
    transform: scale(1.05);
}

.image-grid-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
    color: white;
    padding: 16px 14px 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* 宾馆风采自动横向滚动 */
.image-marquee {
    position: relative;
    overflow: hidden;
    margin: 26px 0;
    padding: 6px 0;
}

.image-marquee-track {
    display: flex;
    align-items: stretch;
    gap: 18px;
    animation: marquee-scroll var(--marquee-duration, 32s) linear infinite;
}

.image-marquee-track:hover {
    animation-play-state: paused;
}

.image-marquee-track .image-grid-item {
    flex: 0 0 260px;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

/* 列表与信息块 */
ul, ol {
    margin-left: 20px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.info-card {
    background: #fffdf8;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: var(--shadow-soft);
}

.info-card h4 {
    margin-bottom: 6px;
}

/* 分隔线 */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 36px 0;
}

/* 位置与地图 */
.location-block {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
}

.map-embed {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    min-height: 280px;
    background: #fef8ec;
}

.map-embed iframe {
    border: none;
    width: 100%;
    height: 100%;
}

.location-notes {
    background: #fffdf8;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: var(--shadow-soft);
}

.location-notes li {
    list-style: none;
    position: relative;
    padding-left: 14px;
}

.location-notes li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* 细分页面元素 */
.breadcrumb {
    background-color: rgba(255, 243, 199, 0.5);
    padding: 14px 16px;
    margin-bottom: 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--secondary-color);
}

.breadcrumb span {
    color: var(--text-muted);
    margin: 0 6px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 26px;
    right: 26px;
    background-color: var(--secondary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-soft);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 通知和警告框 */
.alert {
    padding: 15px 20px;
    margin: 18px 0;
    border-radius: 10px;
    border-left: 4px solid;
    background: #fffaf2;
}

.alert-info {
    border-left-color: #0c5460;
    color: #0c5460;
}

.alert-success {
    border-left-color: #155724;
    color: #155724;
}

.alert-warning {
    border-left-color: #b45309;
    color: #7c3a08;
}

.alert-danger {
    border-left-color: #c41e3a;
    color: #7a1024;
}

/* 表单样式 */
form {
    background-color: #fffdf8;
    padding: 26px;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

input[type="text"],
input[type="email"],
input[type="phone"],
input[type="date"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.12);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 34px 0;
}

.pagination a, .pagination span {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--secondary-color);
    background: #fffdf8;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 打印样式 */
@media print {
    header, footer, nav, .no-print {
        display: none;
    }

    body {
        background-color: white;
    }

    .card {
        page-break-inside: avoid;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-grid,
    .location-block,
    .split-block {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .col-2, .col-3, .col-4 {
        flex: 0 0 100%;
    }

    nav ul {
        flex-direction: column;
        display: none;
    }

    nav.active ul {
        display: flex;
    }

    .contact-info {
        display: none;
    }

    .booking-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-extra {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .carousel-nav {
        position: static;
        margin-bottom: 12px;
    }

    .menu-toggle {
        display: inline-flex;
    }
}
