/* 
 * Style: Hotel Kosta's - Luxury Boutique Website
 * Version: 1.0
 */

/* 1. CSS 变量定义 */
:root {
    /* 颜色方案 */
    --primary-color: #2A2420;      /* 深巧克力色/碳黑 */
    --accent-color: #C5A070;       /* 香槟金/古铜色 */
    --accent-hover: #A6855A;       /* 金色悬停 */
    --bg-light: #F5F2EA;           /* 奶油色/米白 */
    --bg-dark: #1F1A17;            /* 极深背景 */
    --text-main: #2A2420;          /* 主要文字 */
    --text-muted: #6B635E;         /* 辅助文字 */
    --text-light: #F5F2EA;         /* 浅色文字 */
    --white: #FFFFFF;

    /* 字体族 */
    --font-heading: "Cormorant Garamond", "Playfair Display", serif;
    --font-body: "Montserrat", "Lato", sans-serif;

    /* 间距 */
    --section-padding: 100px;
    --container-width: 1280px;
    --transition-base: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
}

i, .italic {
    font-style: italic;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    border-radius: 0; /* 硬朗直角设计 */
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-color);
}

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

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-text {
    padding: 0;
    background: none;
    color: var(--text-main);
    font-weight: 600;
}

.btn-text::after {
    content: ' →';
    transition: transform 0.3s ease;
}

.btn-text:hover::after {
    transform: translateX(5px);
}

/* 3. 组件样式 */

/* 导航栏 */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-base);
}

.header.sticky {
    position: fixed;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 2rem;
}

/* 卡片样式 (套房展示) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: var(--section-padding) 0;
}

.card {
    background: var(--white);
    overflow: hidden;
    transition: var(--transition-base);
}

.card-image {
    aspect-ratio: 4/5;
    overflow: hidden;
}

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

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

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

/* Bento Grid (艺术/设计区) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
    margin-bottom: var(--section-padding);
}

.bento-item {
    position: relative;
    overflow: hidden;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.text-block {
    background: var(--accent-color);
    color: var(--white);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Footer 样式 */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0 30px;
}

.footer-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.subscribe-form {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
}

.subscribe-form input {
    background: transparent;
    border: none;
    color: var(--white);
    flex: 1;
    padding: 0.5rem 0;
    outline: none;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* 4. 响应式媒体查询 */

/* 平板端 (1024px) */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

/* 移动端 (768px) */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* 实际开发中应切换为汉堡菜单 */
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .header {
        padding: 1rem 0;
    }
}

/* 5. 动画与实用工具类 */

.fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding) 0;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

.accent-text {
    color: var(--accent-color);
}

.overlay-dark {
    position: relative;
}

.overlay-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(42, 36, 32, 0.4);
}

/* 杂志排版：图片叠加文字效果 */
.split-section {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-image-wrapper {
    position: relative;
    flex: 1;
}

.floating-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--accent-color);
    padding: 2rem;
    color: var(--white);
    font-family: var(--font-heading);
}