* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #faf8f5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: #8B5A2B;
    margin-bottom: 0.2rem;
}

.logo .tagline {
    font-size: 0.8rem;
    color: #888;
    font-family: 'Playfair Display', serif;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #8B5A2B;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #8B5A2B;
}

#cart-count {
    background: #8B5A2B;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.3rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f0e8 0%, #e8ddd0 100%);
    padding: 0 5%;
    margin-top: 80px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    height: 500px;
    background: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=art%20coffee%20shop%20interior%20design%20modern%20aesthetic&image_size=landscape_16_9') center/cover;
    border-radius: 20px;
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn.primary {
    background: linear-gradient(135deg, #8B5A2B 0%, #6B4423 100%);
    color: white;
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 90, 43, 0.4);
}

.btn.secondary {
    background: transparent;
    color: #8B5A2B;
    border: 2px solid #8B5A2B;
}

.btn.secondary:hover {
    background: #8B5A2B;
    color: white;
}

.btn.center {
    display: block;
    margin: 2rem auto 0;
    width: fit-content;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 6rem 5%;
    background: white;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c2c2c;
}

.feature-card p {
    color: #666;
}

.exhibition-preview,
.menu-preview {
    padding: 6rem 5%;
}

.exhibition-preview h2,
.menu-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c2c2c;
}

.exhibition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.exhibition-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.exhibition-item:hover {
    transform: translateY(-5px);
}

.exhibition-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.exhibition-info {
    padding: 1.5rem;
}

.exhibition-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c2c2c;
}

.exhibition-info p {
    color: #666;
    margin-bottom: 0.3rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.menu-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.menu-item h3 {
    font-size: 1.3rem;
    margin: 1rem 1rem 0.5rem;
    color: #2c2c2c;
}

.menu-item p {
    color: #666;
    margin: 0 1rem 0.5rem;
    font-size: 0.9rem;
}

.menu-item .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B5A2B;
    margin: 0 1rem 1rem;
}

.add-to-cart {
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
    padding: 0.8rem;
    background: #8B5A2B;
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background: #6B4423;
    transform: scale(1.02);
}

footer {
    background: #2c2c2c;
    color: white;
    padding: 4rem 5%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #D4AF37;
}

.footer-section p {
    color: #aaa;
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #888;
}

.page-container {
    min-height: calc(100vh - 200px);
    padding: 100px 5% 4rem;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c2c2c;
}

.exhibition-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.exhibition-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.exhibition-card-image {
    height: 280px;
    background-size: cover;
    background-position: center;
}

.exhibition-card-content {
    padding: 1.5rem;
}

.exhibition-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c2c2c;
}

.exhibition-card-content .artist {
    color: #8B5A2B;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.exhibition-card-content .duration {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.exhibition-card-content .description {
    color: #666;
    line-height: 1.6;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-tab {
    padding: 0.8rem 2rem;
    background: white;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-tab.active,
.category-tab:hover {
    background: #8B5A2B;
    color: white;
    border-color: #8B5A2B;
}

.menu-section {
    margin-bottom: 3rem;
}

.menu-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #8B5A2B;
}

.reservation-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B5A2B;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.time-slot {
    padding: 0.8rem;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot:hover,
.time-slot.selected {
    background: #8B5A2B;
    color: white;
    border-color: #8B5A2B;
}

.time-slot.disabled {
    background: #eee;
    color: #999;
    cursor: not-allowed;
}

.table-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.table-item {
    aspect-ratio: 1;
    background: #e8e8e8;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.table-item.available:hover {
    background: #d4c4b0;
    border-color: #8B5A2B;
}

.table-item.available.selected {
    background: #8B5A2B;
    color: white;
    border-color: #6B4423;
}

.table-item.unavailable {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

.table-item .table-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.table-item .table-seats {
    font-size: 0.8rem;
}

.cart-container {
    max-width: 800px;
    margin: 0 auto;
}

.cart-empty {
    text-align: center;
    padding: 4rem;
}

.cart-empty h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c2c2c;
}

.cart-empty p {
    color: #666;
    margin-bottom: 2rem;
}

.cart-items {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: #2c2c2c;
}

.cart-item-info .price {
    color: #8B5A2B;
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #8B5A2B;
    border-radius: 50%;
    background: transparent;
    color: #8B5A2B;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #8B5A2B;
    color: white;
}

.cart-item-quantity span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.cart-item-delete {
    color: #ff4444;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.cart-item-delete:hover {
    color: #cc0000;
}

.cart-summary {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
}

.cart-summary h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #8B5A2B;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #8B5A2B;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid #eee;
}

.auth-container {
    max-width: 400px;
    margin: 0 auto;
}

.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-card h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c2c2c;
}

.auth-toggle {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-toggle a {
    color: #8B5A2B;
    font-weight: 600;
    text-decoration: none;
}

.auth-toggle a:hover {
    text-decoration: underline;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 5%;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-image {
        width: 100%;
        height: 300px;
        margin-top: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features {
        padding: 3rem 5%;
    }

    .exhibition-grid {
        grid-template-columns: 1fr;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}