/* ========================================
   飞鸟民宿 PC端 自定义样式
   深色主题 · 琥珀金强调 · 现代商务
======================================== */

/* 全局字体与基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========== Tailwind 关键类回退样式 ========== */
/* 确保 Tailwind CDN 加载失败时页面仍可正常显示 */

/* 布局 */
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pb-20 { padding-bottom: 5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* 网格系统 */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:gap-8 { gap: 2rem; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:items-center { align-items: center; }
    .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}
@media (min-width: 1280px) {
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.col-span-full { grid-column: 1 / -1; }

/* Flex */
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* 文字 */
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-white { color: #ffffff; }

/* 颜色 - 自定义 */
.text-dark-200 { color: #e2e8f0; }
.text-brand-400 { color: #fbbf24; }
.bg-brand-500\/10 { background-color: rgba(245,158,11,0.1); }
.text-brand-400 { color: #fbbf24; }
.border-brand-500\/20 { border-color: rgba(245,158,11,0.2); }
.border-white\/5 { border-color: rgba(255,255,255,0.05); }

/* 边框 */
.border-t { border-top-width: 1px; border-top-style: solid; }

/* 圆角 */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

/* 定位 */
.relative { position: relative; }
.absolute { position: absolute; }
.top-3 { top: 0.75rem; }
.left-3 { left: 0.75rem; }
.top-1\/2 { top: 50%; }
.-translate-y-1\/2 { transform: translateY(-50%); }

/* 尺寸 */
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-24 { width: 6rem; }
.w-40 { width: 10rem; }
.w-48 { width: 12rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.pl-10 { padding-left: 2.5rem; }
.ml-1 { margin-left: 0.25rem; }
.mb-1 { margin-bottom: 0.25rem; }

/* 字体 */
.font-normal { font-weight: 400; }

/* 显示 */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* 过渡 */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }

/* Hover */
.hover\:bg-brand-500:hover { background-color: #f59e0b; }
.hover\:text-dark-950:hover { color: #0a0e17; }
.hover\:text-brand-400:hover { color: #fbbf24; }
.hover\:text-white:hover { color: #ffffff; }

/* 光标 */
.cursor-pointer { cursor: pointer; }

/* 最大宽度 */
.max-w-pc { max-width: 1400px; }

/* ========== 组件样式 ========== */

/* 导航链接 */
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #e2e8f0;
    transition: color 0.2s;
    position: relative;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.nav-link:hover {
    color: #fbbf24;
}
.nav-link.active {
    color: #fbbf24;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #f59e0b;
    border-radius: 9999px;
}

/* 下拉菜单项 */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #f1f5f9;
    transition: background-color 0.2s;
}
.dropdown-item:hover {
    background-color: rgba(255,255,255,0.05);
}

/* 导航栏滚动效果 */
.nav-scrolled {
    background-color: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
}

/* Hero区域 */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.hero-slide.active {
    opacity: 1;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 14, 23, 0.3) 0%,
        rgba(10, 14, 23, 0.1) 40%,
        rgba(10, 14, 23, 0.5) 70%,
        rgba(10, 14, 23, 0.95) 100%
    );
}
.hero-content {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
    max-width: 800px;
}

/* CTA按钮 */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(to right, #f59e0b, #d97706);
    color: #0a0e17;
    font-weight: 700;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.btn-cta:hover {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    box-shadow: 0 20px 25px -5px rgba(245,158,11,0.3);
    transform: translateY(-2px);
}
.btn-cta:active {
    transform: scale(0.95);
}
.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    font-weight: 700;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
    text-decoration: none;
    background: transparent;
    cursor: pointer;
}
.btn-cta-outline:hover {
    border-color: #fbbf24;
    color: #fbbf24;
    box-shadow: 0 20px 25px -5px rgba(245,158,11,0.1);
    transform: translateY(-2px);
}

/* 房间卡片 */
.room-card {
    background-color: #141c2e;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}
.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(245,158,11,0.1);
    border-color: rgba(245,158,11,0.2);
}
.room-card-img {
    width: 100%;
    height: 220px;
    background-color: #141c2e;
    overflow: hidden;
    position: relative;
}
.room-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}
.room-card:hover .room-card-img img {
    transform: scale(1.1);
}
.room-card-body {
    padding: 1.25rem;
}
.room-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}
.room-tag-hot {
    background-color: rgba(239,68,68,0.1);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.2);
}
.room-tag-new {
    background-color: rgba(34,197,94,0.1);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.2);
}
.room-tag-vip {
    background-color: rgba(245,158,11,0.1);
    color: #fbbf24;
    border: 1px solid rgba(245,158,11,0.2);
}

/* 特色服务区 */
.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background-color: rgba(20,28,46,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}
.feature-card:hover {
    background-color: #141c2e;
    border-color: rgba(245,158,11,0.2);
    transform: translateY(-4px);
}
.feature-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(to bottom right, rgba(245,158,11,0.2), rgba(217,119,6,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
}

/* 页面标题区域 */
.page-hero {
    padding-top: 7rem;
    padding-bottom: 3rem;
    background: linear-gradient(to bottom, #0f172a, #0a0e17);
}

/* 筛选栏 */
.filter-bar {
    background-color: #141c2e;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 2rem;
}
@media (min-width: 1024px) {
    .filter-bar {
        padding: 1.5rem;
    }
}
.filter-tag {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    background-color: #1e293b;
    color: #e2e8f0;
}
.filter-tag.active {
    background-color: #f59e0b;
    color: #0a0e17;
    border-color: #f59e0b;
}
.filter-tag:not(.active):hover {
    border-color: rgba(245,158,11,0.3);
    color: #fbbf24;
}

/* 会员中心 */
.member-sidebar {
    width: 16rem;
    flex-shrink: 0;
    background-color: #141c2e;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1rem;
    padding: 1rem;
    height: fit-content;
    position: sticky;
    top: 6rem;
}
.member-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: #e2e8f0;
    transition: all 0.2s;
    cursor: pointer;
}
.member-sidebar-item:hover {
    background-color: rgba(255,255,255,0.05);
    color: #f1f5f9;
}
.member-sidebar-item.active {
    background-color: rgba(245,158,11,0.1);
    color: #fbbf24;
    border: 1px solid rgba(245,158,11,0.2);
}
.member-content {
    flex: 1;
    min-width: 0;
}

/* 表单输入框 */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    color: #f1f5f9;
    outline: none;
    transition: all 0.2s;
    font-size: 0.875rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
select.form-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23e2e8f0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}
.form-input::placeholder {
    color: #e2e8f0;
}
.form-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 1px rgba(245,158,11,0.5);
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

/* 按钮 */
.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #f59e0b, #d97706);
    color: #0a0e17;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    box-shadow: 0 10px 15px -3px rgba(245,158,11,0.25);
    transform: translateY(-2px);
}
.btn-primary:active {
    transform: scale(0.95);
}
.btn-secondary {
    padding: 0.75rem 1.5rem;
    background-color: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    color: #f1f5f9;
    font-weight: 500;
    border-radius: 0.75rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}
.btn-secondary:hover {
    border-color: rgba(245,158,11,0.3);
    color: #fbbf24;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.pagination a, .pagination span {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}
.pagination a {
    color: #e2e8f0;
}
.pagination a:hover {
    background-color: rgba(255,255,255,0.05);
    color: #fbbf24;
}
.pagination .active {
    background-color: #f59e0b;
    color: #0a0e17;
}
.pagination .disabled {
    color: rgba(226,232,240,0.3);
    cursor: not-allowed;
}

/* 登录弹窗 */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.login-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}
.login-modal {
    background-color: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 28rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    position: relative;
}
.login-modal-overlay.show .login-modal {
    transform: translateY(0) scale(1);
}

/* 滚动提示箭头 */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-12px); }
    60% { transform: translateX(-50%) translateY(-6px); }
}

/* 卡片通用悬浮效果 */
.hover-card {
    transition: all 0.3s;
}
.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
}

/* 价格样式 */
.price-original {
    color: #e2e8f0;
    text-decoration: line-through;
    font-size: 0.875rem;
}
.price-member {
    color: #fbbf24;
    font-weight: 700;
    font-size: 1.5rem;
}

/* 加载动画 */
.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid rgba(245,158,11,0.2);
    border-top-color: #f59e0b;
    border-radius: 9999px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 淡入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 表格样式 */
.data-table {
    width: 100%;
    font-size: 0.875rem;
}
.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.data-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.data-table tr:hover td {
    background-color: rgba(255,255,255,0.02);
}

/* 状态标签 */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}
.status-pending { background-color: rgba(234,179,8,0.1); color: #facc15; }
.status-confirmed { background-color: rgba(59,130,246,0.1); color: #60a5fa; }
.status-checked-in { background-color: rgba(34,197,94,0.1); color: #4ade80; }
.status-checked-out { background-color: rgba(226,232,240,0.1); color: #e2e8f0; }
.status-cancelled { background-color: rgba(239,68,68,0.1); color: #f87171; }

/* 响应式隐藏 */
@media (max-width: 1023px) {
    .pc-only { display: none !important; }
}
@media (min-width: 1024px) {
    .mobile-only { display: none !important; }
}
