/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 统一品牌与导航风格（威海海边 · 星级酒店） */
:root{
  --brand-dark:#0b3a5b;
  --brand:#116dae;
  --brand-light:#79c0ff;
}

.logo-img{width:44px;height:44px;border-radius:10px}
.brand{
  margin-left:10px;font-weight:800;font-size:24px;
  background:linear-gradient(90deg,var(--brand),var(--brand-light));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;display:inline-block
}

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

/* 导航栏 */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255,255,255,0.82);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(17,109,174,.12);
    transition: background .25s ease, box-shadow .25s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo{display:flex;align-items:center;gap:10px}
.nav-logo h2{margin:0}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.2rem;
}

.nav-link {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    transition: all 0.25s ease;
    position: relative;
    padding: 10px 14px;
    border-radius: 999px;
}

.nav-link:hover,
.nav-link.active { color:#fff; background:linear-gradient(135deg, var(--brand-dark), var(--brand)); box-shadow:0 8px 24px rgba(17,109,174,.25); }

.nav-link::after { display:none !important; content:none !important; }

.admin-link { background:linear-gradient(135deg,#e11d48,#f43f5e); color:#fff !important; padding:.6rem 1.1rem; border-radius:999px }
.admin-link:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(225,29,72,.3) }

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主横幅 */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

#slide1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/hero1.jpg');
}

#slide2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/hero2.jpg');
}

#slide3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/hero3.jpg');
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-location {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 24px rgba(17,109,174,.35);
}

.cta-button:hover {
    background: #134a5f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 95, 122, 0.4);
}

/* 轮播控制 */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 3;
}

.prev-btn,
.next-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

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

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.2);
}

/* 通用标题 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a5f7a;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #1a5f7a;
}

/* 酒店特色 */
.features {
    padding: 5rem 0;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a5f7a, #2d8aa6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    color: #1a5f7a;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* 房型预览 */
.room-preview {
    padding: 5rem 0;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.room-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.room-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}



.room-info {
    padding: 1.5rem;
}

.room-title {
    color: #1a5f7a;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.room-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.room-feature {
    background: #f0f8ff;
    color: #1a5f7a;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.view-all-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #134a5f;
    transform: translateY(-2px);
}

.text-center {
    text-align: center;
}

/* 酒店数据 */
.stats {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1a5f7a, #2d8aa6);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 页脚 */
.footer {
    background: #0b1220;
    color: #e5e7eb;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--brand);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--brand);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* 页面标题（统一） */
.page-header {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: white;
    text-align: center;
    padding: 8rem 0 4rem;
    margin-top: 80px;
}

/* 详情画廊样式 */
.detail-gallery{display:grid;gap:12px}
.gallery-main{height:420px;border-radius:16px;background-size:cover;background-position:center;box-shadow:0 12px 36px rgba(2,6,23,.12)}
.gallery-thumbs{display:flex;gap:10px;flex-wrap:wrap}
.gallery-thumbs .thumb{width:120px;height:70px;object-fit:cover;border-radius:10px;opacity:.85;cursor:pointer;border:2px solid transparent}
.gallery-thumbs .thumb.active{opacity:1;border-color:var(--brand)}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 房型筛选 */
.room-filter {
    padding: 2rem 0;
    background: #f8f9fa;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid var(--brand);
    color: var(--brand);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--brand);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17,109,174,.25);
}

/* 房型卡片动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.room-card {
    animation: fadeIn 0.5s ease;
}

/* 房型列表 */
.rooms-section {
    padding: 3rem 0;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* 预订信息 */
.booking-info {
    padding: 3rem 0;
    background: #f8f9fa;
}

.booking-content h2 {
    text-align: center;
    color: #1a5f7a;
    margin-bottom: 2rem;
}

.booking-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.booking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.booking-item i {
    font-size: 2rem;
    color: #1a5f7a;
}

.booking-item h4 {
    color: #1a5f7a;
    margin-bottom: 0.5rem;
}

/* 关于我们页面 */
.about-intro {
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    color: #1a5f7a;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.philosophy {
    padding: 4rem 0;
    background: #f8f9fa;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.philosophy-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.philosophy-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a5f7a, #2d8aa6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.philosophy-icon i {
    font-size: 2rem;
    color: white;
}

.history {
    padding: 4rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #1a5f7a;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 60%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 60%;
    margin-right: 0;
    text-align: left;
}

.timeline-year {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: #1a5f7a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-content h3 {
    color: #1a5f7a;
    margin-bottom: 0.5rem;
}

.team {
    padding: 4rem 0;
    background: #f8f9fa;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 5px solid #1a5f7a;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    color: #1a5f7a;
    margin-bottom: 0.5rem;
}

.member-title {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

/* 联系我们页面 */
.contact-info {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a5f7a, #2d8aa6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon i {
    font-size: 2rem;
    color: white;
}

.contact-card h3 {
    color: #1a5f7a;
    margin-bottom: 1rem;
}

.contact-form {
    padding: 4rem 0;
    background: #f8f9fa;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    text-align: center;
    color: var(--brand-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-group { margin-bottom: 1rem; }
.form-group label { display:block; margin-bottom: .5rem; color: var(--brand-dark); font-weight:600; }
.form-group input,
.form-group select,
.form-group textarea{
  width:100%; padding:14px; border:1px solid #e5e7eb; border-radius:10px; font:inherit; transition:.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{ outline:none; border-color: var(--brand); box-shadow:0 0 0 3px rgba(17,109,174,.12) }

/* 响应式导航（移动端） */
@media (max-width: 768px){
  .nav-menu{ position: fixed; left: -100%; top:78px; flex-direction: column; background:#fff; width:100%; padding:16px 0; box-shadow:0 10px 27px rgba(0,0,0,.08); transition:.25s }
  .nav-menu.active{ left:0 }
  .hamburger{ display:flex }
}

/* 细节修正 */
.detail-desc{ color:#475569; line-height:1.85; margin-top:14px }
.price{ font-weight:800; color:var(--brand-dark); font-size:20px; margin:12px 0 }