/* AI Bite 网站样式 - 现代科技风格（深邃蓝紫渐变） */

:root {
    --primary-color: #667eea; /* 优雅紫蓝色 */
    --secondary-color: #764ba2; /* 深紫色 */
    --accent-color: #f093fb; /* 粉紫色 */
    --accent-blue: #4facfe; /* 明亮蓝色 */
    --text-color: #2d3748;
    --light-text: #f7fafc;
    --background-color: #f7fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: rgba(102, 126, 234, 0.15);
    --shadow-lg: rgba(102, 126, 234, 0.3);
    --dark-bg: #1a202c;
    --gradient-start: #667eea;
    --gradient-mid: #764ba2;
    --gradient-end: #f093fb;
    --gradient-blue: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-pink: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-special: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 语言切换按钮 */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--gradient-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 20px var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.language-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px var(--shadow-lg);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.language-toggle:active {
    transform: translateY(-1px) scale(1.02);
}

/* 语言控制 */
body:not(.lang-cn) .lang-cn {
    display: none;
}

body.lang-cn .lang-en {
    display: none;
}

/* 导航栏 */
.navbar {
    background: var(--gradient-blue);
    padding: 20px 0;
    box-shadow: 0 4px 30px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    background: white;
    padding: 0px;
}

.logo-text h1 {
    font-family: 'Orbitron', sans-serif;
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.logo-text .tagline {
    font-size: 12px;
    color: var(--light-text);
    margin: 0;
    opacity: 0.9;
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.phone-btn, .cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.phone-btn {
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid white;
}

.phone-btn:hover {
    background: transparent;
    color: white;
}

.cart-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    position: relative;
}

.cart-btn:hover {
    background: white;
    color: var(--primary-color);
}

.cart-count {
    background: #ff6348;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
}

/* Hero区域 */
.hero {
    background: 
        linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 50%, rgba(240, 147, 251, 0.9) 100%),
        url('images/hero-bg.jpg') center/cover;
    background-blend-mode: overlay;
    padding: 140px 0;
    text-align: center;
    position: relative;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.2) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.8; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(240, 147, 251, 0.3) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 
        0 0 20px rgba(240, 147, 251, 0.5),
        0 0 40px rgba(102, 126, 234, 0.3),
        2px 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px rgba(240, 147, 251, 0.5), 0 0 40px rgba(102, 126, 234, 0.3), 2px 2px 10px rgba(0, 0, 0, 0.3); }
    50% { text-shadow: 0 0 30px rgba(240, 147, 251, 0.8), 0 0 60px rgba(102, 126, 234, 0.5), 2px 2px 10px rgba(0, 0, 0, 0.3); }
}

.hero-subtitle {
    font-size: 26px;
    margin-bottom: 40px;
    opacity: 0.98;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    color: var(--secondary-color);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-3px) scale(1.02);
}

/* 菜单区域 */
.menu-section {
    padding: 60px 0;
    background: var(--background-color);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    font-size: 42px;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-pink);
    border-radius: 2px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-color);
    opacity: 0.8;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 60px 0;
}

.loader {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 菜单内容 */
.menu-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.menu-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--gradient-blue);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.menu-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px var(--shadow-lg);
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-item-content {
    padding: 20px;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.menu-item-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    flex: 1;
}

.menu-item-price {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}

.menu-item-description {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 15px;
    line-height: 1.5;
}

.menu-item-options {
    margin: 15px 0;
    padding: 10px;
    background: var(--background-color);
    border-radius: 8px;
}

.menu-item-options label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-color);
}

.menu-item-options select {
    width: 100%;
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.menu-item-options select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.add-to-cart-btn {
    width: 100%;
    background: var(--gradient-blue);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-lg);
}

.add-to-cart-btn:hover::before {
    width: 300px;
    height: 300px;
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* 关于我们区域 */
.about-section {
    padding: 60px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
}

.about-features {
    display: grid;
    gap: 20px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 22px;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
}

/* 联系方式区域 */
.contact-section {
    padding: 80px 0;
    background: var(--gradient-blue);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-info h2 {
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    font-size: 36px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item .icon {
    font-size: 32px;
}

.info-item p {
    margin: 5px 0;
    font-size: 14px;
    opacity: 0.9;
}

.info-item a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.info-item a:hover {
    opacity: 0.8;
}

/* 购物车侧边栏 */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1002;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    background: var(--gradient-blue);
    color: white;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(102, 126, 234, 0.2);
}

.cart-header h3 {
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    font-size: 24px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    background: var(--background-color);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.cart-item-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-color);
}

.cart-item-remove {
    background: #ff6348;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.cart-item-details {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    margin: 5px 0;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--secondary-color);
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
    font-family: 'Orbitron', sans-serif;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-color);
    opacity: 0.6;
}

.cart-footer {
    border-top: 2px solid var(--border-color);
    padding: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.cart-total span:last-child {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
}

.checkout-btn {
    width: 100%;
    background: var(--gradient-blue);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px var(--shadow);
    position: relative;
    overflow: hidden;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-lg);
}

.checkout-btn:hover::before {
    width: 400px;
    height: 400px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1003;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-color);
}

.modal-close:hover {
    color: var(--primary-color);
}

/* 页脚 */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-content p {
    margin: 5px 0;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 15px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .menu-content {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .about-text h2 {
        font-size: 28px;
    }

    .contact-info h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 20px;
    }

    .phone-btn, .cart-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

