* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航 */
.navbar {
    background: #1a1a2e;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f4a261;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 30px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: #f4a261;
    color: white;
}

.btn-primary:hover {
    background: #e76f51;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* 特色 */
.features {
    padding: 80px 0;
    background: white;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: #1a1a2e;
}

.feature-card p {
    color: #666;
}

/* 菜单 */
.menu-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1a1a2e;
}

.menu-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background: #f4a261;
    color: white;
    border-color: #f4a261;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.menu-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.menu-item-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.menu-item-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.menu-item-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f4a261;
}

.menu-item-category {
    display: inline-block;
    padding: 3px 10px;
    background: #eee;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 10px;
}

/* 关于我们 */
.about-section {
    padding: 80px 0;
    background: white;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 15px;
}

/* 预约表单 */
.reservation-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.reservation-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #f4a261;
    outline: none;
}

.result-message {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.05rem;
}

.result-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 联系我们 */
.contact-section {
    padding: 80px 0;
    background: white;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 20px;
}

.contact-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.contact-item p {
    color: #555;
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero { padding: 60px 20px; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a2e;
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    
    .features .container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
}


/* ========== 管理后台 ========== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal-box {
    background: #fff;
    border-radius: 12px;
    width: 420px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #eee;
}
.modal-header h3 { margin: 0; font-size: 1.1rem; color: #1a1a2e; }
.modal-close {
    background: none; border: none; font-size: 1.5rem;
    cursor: pointer; color: #999; line-height: 1;
}
.modal-close:hover { color: #333; }
.modal-body { padding: 24px; }

.admin-panel {
    background: #f5f2ed;
    padding: 30px 0;
    border-top: 3px solid #f4a261;
    margin-top: 40px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.admin-header h2 { margin: 0; font-size: 1.3rem; color: #1a1a2e; }
.admin-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}
.admin-tab {
    padding: 10px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.admin-tab:hover { color: #f4a261; }
.admin-tab.active {
    color: #f4a261;
    border-bottom-color: #f4a261;
    font-weight: 600;
}
.admin-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}
.admin-toolbar input[type="date"],
.admin-toolbar select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.admin-table th {
    background: #1a1a2e;
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    font-weight: 500;
    font-size: 0.85rem;
}
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}
.admin-table tr:hover td { background: #f9f7f4; }
.btn-sm {
    padding: 5px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    color: #fff;
}
.btn-danger { background: #e74c3c; }
.btn-danger:hover { background: #c0392b; }
.btn-success { background: #27ae60; }
.btn-success:hover { background: #219a52; }
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}
.status-confirmed { background: #e8f5e9; color: #2e7d32; }
.status-completed { background: #e3f2fd; color: #1565c0; }
.status-cancelled { background: #fbe9e7; color: #c62828; }

@media (max-width: 768px) {
    .admin-table { font-size: 0.8rem; }
    .admin-table th,
    .admin-table td { padding: 6px 8px; }
}


/* ========== 语言切换 ========== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 5px;
}
.lang-btn {
    background: none;
    border: 1px solid transparent;
    color: #aaa;
    font-size: 0.75rem;
    padding: 2px 5px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.lang-btn:hover {
    color: #f4a261;
    border-color: #f4a26144;
}
.lang-btn.active {
    color: #f4a261;
    border-color: #f4a261;
    background: #f4a26122;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin: 5px 0;
        justify-content: center;
    }
    .lang-btn {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

/* ========== 语言下拉菜单 ========== */
.lang-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
.lang-dropdown-toggle {
    background: none;
    border: 1px solid #555;
    color: #ddd;
    font-size: 0.85rem;
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}
.lang-dropdown-toggle:hover {
    border-color: #f4a261;
    color: #f4a261;
}
.lang-dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 160px;
    padding: 6px 0;
    z-index: 2000;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    list-style: none;
}
.lang-dropdown-menu.show {
    display: block !important;
}
.lang-dropdown-menu li {
    margin: 0;
    padding: 0;
}
.lang-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #ccc !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.lang-dropdown-menu a:hover {
    background: #2a2a4e;
    color: #f4a261 !important;
}

@media (max-width: 768px) {
    .lang-dropdown {
        justify-content: center;
        margin: 5px 0;
    }
    .lang-dropdown-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}
