/* 
 * 澳门旅游娱乐酒店攻略网站 - 主样式表
 * 设计风格：现代奢华风格，深紫色与金色配色
 * 优化：移动端优先，响应式设计
 */

/* CSS变量定义 */
:root {
    --primary-color: #4A1A6B;
    --primary-dark: #2D0F42;
    --primary-light: #6B2D96;
    --accent-gold: #D4AF37;
    --accent-gold-light: #F4D03F;
    --accent-gold-dark: #B8860B;
    --text-dark: #1A1A2E;
    --text-light: #F5F5F5;
    --text-muted: #6B7280;
    --bg-light: #FAFAFA;
    --bg-cream: #FDF8F3;
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-primary: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-display: 'Noto Serif SC', 'STSong', serif;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* 重置样式 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-gold);
}

ul, ol {
    list-style: none;
}

/* 排版样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.25rem;
}

/* 容器布局 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--bg-cream);
}

.section-dark {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--text-light);
}

.section-dark h2,
.section-dark h3 {
    color: var(--text-light);
}

/* 头部导航 */
.site-header {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-wrap img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.main-nav {
    display: none;
}

.main-nav.active {
    display: block;
    width: 100%;
    order: 3;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-list a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-list a:hover,
.nav-list a.active {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent-gold);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--text-dark);
    font-weight: 700;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-dark);
}

/* Hero区域 */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 15, 66, 0.85) 0%, rgba(74, 26, 107, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 1rem;
}

.hero-title {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-title span {
    color: var(--accent-gold);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.hero-cta .cta-button {
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 1rem 0;
    background-color: var(--bg-cream);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-list li::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: var(--text-muted);
}

.breadcrumb-list a:hover {
    color: var(--primary-color);
}

.breadcrumb-list .current {
    color: var(--primary-color);
    font-weight: 500;
}

/* 卡片组件 */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--accent-gold);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* 特色区块 */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    color: var(--accent-gold);
    font-size: 2rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-text {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* 作者信息区块 */
.author-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-gold);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.author-title {
    color: var(--accent-gold-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-bio {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* 评论区块 */
.review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.review-card {
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-gold);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.25rem;
}

.review-meta h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.review-location {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.review-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.star {
    color: var(--accent-gold);
    font-size: 1rem;
}

.star.empty {
    color: var(--border-color);
}

.review-text {
    color: var(--text-dark);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.review-date {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* FAQ区块 */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background-color: var(--bg-cream);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 支付方式区块 */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.payment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.payment-icon {
    width: 50px;
    height: 35px;
    object-fit: contain;
}

.payment-name {
    font-weight: 500;
    font-size: 0.9375rem;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--primary-color);
    color: var(--text-light);
    font-weight: 600;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background-color: var(--bg-cream);
}

/* 页脚样式 */
.site-footer {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-gold);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-gold);
    display: inline-block;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.footer-section a:hover {
    color: var(--accent-gold);
    padding-left: 0.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-logo span {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.125rem;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--text-dark);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.age-badge {
    background: var(--error-color);
    color: white;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

/* 标签页面样式 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tag-item {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.tag-item:hover {
    background: var(--accent-gold);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.tag-item.large {
    font-size: 1.125rem;
    padding: 0.75rem 1.5rem;
}

.tag-item.small {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
}

/* 内容页面样式 */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.main-content {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.main-content h2 {
    color: var(--primary-color);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-gold);
    margin-bottom: 1.5rem;
}

.main-content h3 {
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.main-content p {
    text-align: justify;
}

.main-content ul,
.main-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.main-content li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.main-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.main-content ol {
    counter-reset: item;
}

.main-content ol li {
    counter-increment: item;
}

.main-content ol li::before {
    content: counter(item) '.';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.content-image {
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.content-image img {
    width: 100%;
    height: auto;
}

.content-image figcaption {
    padding: 0.75rem;
    background: var(--bg-cream);
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

/* 侧边栏样式 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-gold);
}

.sidebar-widget ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-widget a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-dark);
    border-bottom: 1px dashed var(--border-color);
    transition: all var(--transition-fast);
}

.sidebar-widget a:hover {
    color: var(--accent-gold);
    padding-left: 0.5rem;
}

/* 响应式设计 - 平板 */
@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: row;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .author-box {
        flex-direction: row;
        text-align: left;
    }
}

/* 响应式设计 - 桌面 */
@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    h1 { font-size: 3.5rem; }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .main-nav {
        display: block;
        width: auto;
        order: 0;
    }
    
    .nav-list {
        flex-direction: row;
        gap: 0.25rem;
    }
    
    .nav-list a {
        padding: 0.5rem 1rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .review-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .payment-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .content-wrapper {
        grid-template-columns: 1fr 300px;
    }
}

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

.gold-text { color: var(--accent-gold); }
.primary-text { color: var(--primary-color); }

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* 打印样式 */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .cta-button {
        display: none;
    }
    
    .main-content {
        box-shadow: none;
        padding: 0;
    }
}
