@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=DM+Sans:wght@400;500;700&display=swap');

:root {
    --bg: #F6E7C6;
    --ink: #3B2A20;
    --accent: #D9622B;
    --accent-2: #587F62;
    --paper: #FBF3DF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

.heading-display {
    font-family: 'Alfa Slab One', cursive;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 400;
}

/* 布局工具 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

section {
    padding: 80px 0;
}

.section-border-top {
    border-top: 3px solid var(--ink);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--ink);
    text-shadow: 2px 2px 0px rgba(59, 42, 32, 0.1);
}

/* 按钮设计 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--accent);
    color: var(--paper);
    border: 3px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    text-align: center;
}

.btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0 var(--ink);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.25rem;
}

.btn-secondary {
    background-color: var(--paper);
    color: var(--ink);
}

/* 卡片 */
.card {
    background: var(--paper);
    padding: 30px;
    border: 3px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    position: relative;
}

.card-icon {
    font-family: 'Alfa Slab One', cursive;
    font-size: 3rem;
    color: var(--accent-2);
    margin-bottom: 10px;
    line-height: 1;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--ink);
}

/* 导航栏 */
.navbar {
    padding: 15px 0;
    border-bottom: 3px solid var(--ink);
    background-color: var(--bg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ink);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    text-decoration: underline wavy var(--accent);
    text-underline-offset: 6px;
}

/* Hero 区域 */
.hero {
    padding: 100px 0;
    background-image: 
        radial-gradient(var(--ink) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    background-position: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border: 4px solid var(--ink);
    box-shadow: 8px 8px 0 var(--ink);
    border-radius: 8px;
    background-color: var(--paper);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--ink);
    text-shadow: 4px 4px 0px var(--paper), 6px 6px 0px var(--ink);
    line-height: 1.2;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: var(--paper);
    padding: 15px;
    border: 3px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    font-weight: 700;
}

/* 资源入口 */
.resources {
    padding: 40px 0;
    background-color: var(--accent-2);
    color: var(--paper);
}

.text-link {
    color: var(--paper);
    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.text-link:hover {
    background-color: var(--accent);
    color: var(--paper);
}

/* 每日特选餐券样式 */
.ticket-card {
    background-color: var(--paper);
    border: 3px dashed var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    position: relative;
    padding: 40px 30px;
}

.stamp-badge {
    position: absolute;
    top: -20px;
    right: -10px;
    background: var(--accent);
    color: var(--paper);
    padding: 5px 15px;
    font-family: 'Alfa Slab One', cursive;
    font-size: 1rem;
    border: 3px solid var(--ink);
    transform: rotate(5deg);
    box-shadow: 3px 3px 0 var(--ink);
}

.corner-star {
    position: absolute;
    top: 10px;
    left: 10px;
}

.ticket-alt {
    border-radius: 0;
    border: 3px dashed var(--ink);
}

/* 定价表 */
.pricing-card {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.price {
    font-family: 'DM Sans', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin: 20px 0;
    color: var(--ink);
}

.price span {
    font-size: 1.2rem;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
    flex-grow: 1;
}

.pricing-card ul li {
    padding: 12px 0;
    border-bottom: 2px dashed var(--ink);
    font-weight: 700;
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

.pricing-card ul li:before {
    content: "★";
    color: var(--accent);
    margin-right: 10px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 30px;
    background: var(--paper);
    padding: 20px;
    border: 3px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
}

.faq-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* 页脚 */
footer {
    padding: 40px 0;
    text-align: center;
    background-color: var(--paper);
}

.footer-links {
    margin-bottom: 25px;
}

.footer-links a {
    margin: 0 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-links a:hover {
    text-decoration: underline wavy var(--accent);
    text-underline-offset: 4px;
}

.copyright {
    font-family: 'Alfa Slab One', cursive;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* News Cards */
.news-card {
    display: flex;
    flex-direction: column;
    padding: 25px;
}
.news-meta {
    display: flex;
    justify-content: space-between;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent-2);
    border-bottom: 2px dashed var(--ink);
    padding-bottom: 10px;
}
.news-category {
    background: var(--accent);
    color: var(--paper);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.news-title {
    font-family: 'Alfa Slab One', cursive;
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 15px;
}
.news-title a:hover {
    color: var(--accent);
}
.news-excerpt {
    flex-grow: 1;
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #444;
}
.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.read-time {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-2);
}
.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Article Styles */
.article-header {
    margin-bottom: 40px;
    text-align: center;
}
.article-meta {
    margin-top: 20px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: var(--accent-2);
}
.article-content h2 {
    font-family: 'Alfa Slab One', cursive;
    font-size: 1.8rem;
    margin: 40px 0 20px 0;
    border-bottom: 3px solid var(--ink);
    padding-bottom: 10px;
}
.article-content h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 25px 0 15px 0;
}
.article-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}
.article-content ul, .article-content ol {
    margin: 0 0 20px 40px;
    font-size: 1.05rem;
}
.article-content li {
    margin-bottom: 10px;
}
.breadcrumb {
    margin-bottom: 20px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
}
.breadcrumb a {
    color: var(--accent);
}

/* Floating Action Button (Back to Top) */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent);
    color: var(--paper);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Alfa Slab One', cursive;
    font-size: 1.1rem;
    border: 3px solid var(--ink);
    border-radius: 50%;
    box-shadow: 4px 4px 0 var(--ink);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.floating-btn:hover {
    background-color: var(--accent-2);
}
.floating-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0 var(--ink);
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* 响应式适配 */
@media (max-width: 900px) {
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        text-align: center;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-image-wrapper {
        margin-top: 30px;
    }

    .desktop-nav {
        display: none;
    }

    .btn {
        width: 100%;
        padding: 16px 20px;
    }
    
    .nav-container .btn {
        width: auto;
        padding: 10px 15px;
    }

    .footer-links a {
        display: block;
        margin: 15px 0;
    }
}
