/*
Theme Name: Meili Resort Luxury
Version: 1.2.1 (Fix Layout)
*/

:root {
    --primary-blue: #003865;
    --accent-gold: #c5a36b;
    --text-light: #ffffff;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
}

body, html {
    margin: 0; padding: 0;
    background-color: var(--primary-blue);
    color: var(--text-light);
    font-family: var(--font-sans);
    width: 100%; min-height: 100%;
    overflow-x: hidden;
}

/* 适配 WP Admin Bar */
body.admin-bar .site-header { top: 32px; }

/* 纹理 */
.texture-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1; pointer-events: none; z-index: 5;
}

/* 头部 */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 30px 50px; display: flex;
    justify-content: space-between; align-items: center;
    z-index: 1000; background: linear-gradient(to bottom, rgba(0,56,101,0.6), transparent);
}
.logo-text {
    font-family: var(--font-serif); font-size: 1.4rem; letter-spacing: 5px;
    font-weight: 700; text-decoration: none; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.menu-trigger { cursor: pointer; display: flex; align-items: center; gap: 10px; }
.burger { width: 30px; height: 1px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.5); }

/* =========================================
   核心修复：首页视频与居中布局
   ========================================= */

.hero-viewport {
    position: relative;
    width: 100%; height: 100vh;
    /* 强制居中三连 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 视频背景层 - 绝对定位，不干扰布局 */
.video-bg-wrap {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; /* 最底层 */
}
.video-bg-wrap video {
    width: 100%; height: 100%; object-fit: cover;
}
/* 视频遮罩 - 增加文字可读性 */
.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 30, 60, 0.4); /* 深蓝半透明 */
    z-index: 1;
}

/* 圆形装饰 */
.circle-bg {
    position: absolute; width: 70vh; height: 70vh;
    border: 1px solid rgba(255,255,255,0.15); border-radius: 50%;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 2; pointer-events: none;
}

/* 核心内容区 - 必须位于最上层且居中 */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center; /* 文字内部居中 */
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-serif); font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 15px; line-height: 1.1; margin: 0;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5); /* 增加投影 */
}

.hero-tagline {
    margin-top: 20px; letter-spacing: 8px; font-size: 1rem;
    text-transform: uppercase; opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-desc {
    margin-top: 40px; 
}
.hero-desc p {
    font-size: 1rem; opacity: 0.9; line-height: 2; font-weight: 300;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* 修复按钮样式 */
.meili-btn {
    display: inline-block;
    padding: 15px 40px;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1); /* 磨砂玻璃感 */
    backdrop-filter: blur(5px);
    color: #fff !important; /* 强制白色 */
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 3px;
    transition: 0.4s;
    border-radius: 2px;
}
.meili-btn:hover {
    background: #fff;
    color: var(--primary-blue) !important;
    border-color: #fff;
}

/* 底部 */
.main-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 50px; display: flex; justify-content: space-between;
    font-size: 0.7rem; letter-spacing: 2px; opacity: 0.6;
}

/* 语言切换 */
.lang-nav {
    position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 20px; z-index: 100;
}
.lang-nav a {
    color: #fff; text-decoration: none; font-size: 10px; opacity: 0.6;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.lang-nav a.active { opacity: 1; border-bottom: 1px solid #fff; }

/* 菜单 */
#full-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary-blue); z-index: 2000;
    display: none; justify-content: center; align-items: center;
}
#full-menu ul { list-style: none; padding: 0; text-align: center; }
#full-menu li { margin: 25px 0; }
#full-menu a {
    color: #fff; text-decoration: none; font-family: var(--font-serif);
    font-size: 2.5rem; letter-spacing: 5px; opacity: 0.6; transition: 0.3s;
}
#full-menu a:hover { opacity: 1; color: var(--accent-gold); }

/* 响应式 */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; letter-spacing: 5px; }
    .page-container { padding-top: 100px; }
    .content-item { flex-direction: column !important; }
}