/* ==========================================
   风味智库 - 完整样式文件
   基于UI设计稿制作
   ========================================== */

/* CSS变量 - 设计稿颜色方案 */
:root {
    --primary-bg: #F5F0EB;           /* 主背景色 - 浅米色 */
    --white-bg: #FFFFFF;              /* 纯白背景 */
    --secondary-bg: #EDE8E3;          /* 次要背景色 - 米灰色 */
    --primary-color: #8B4513;         /* 主题色 - 棕色 */
    --accent-color: #A0522D;          /* 强调色 - 赭石色 */
    --text-dark: #333333;             /* 深色文字 */
    --text-gray: #666666;             /* 灰色文字 */
    --text-light: #999999;            /* 浅灰色文字 */
    --border-color: #D4CFC8;          /* 边框颜色 */
    --hero-overlay: rgba(245, 240, 235, 0.85); /* Hero遮罩 */
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--primary-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   头部导航
   ========================================== */
.main-header {
    background: var(--white-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 45px;
    width: auto;
}

.logo-main {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

.main-nav {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-shrink: 1; /* Allow nav to shrink */
    flex-wrap: wrap; /* Allow nav items to wrap */
    justify-content: center; /* Center nav items when they wrap */
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    padding: 0;
    border-radius: 4px;
    transition: color 0.3s;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap; /* Prevent wrapping of child elements */
    flex-shrink: 0; /* Prevent the container from shrinking */
}

.phone-number {
    font-size: 14px;
    color: var(--text-gray);
}

.login-btn,
.register-btn {
    display: inline-block;
    box-sizing: border-box;
    background: var(--primary-color);
    color: white !important;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: background 0.3s;
    text-decoration: none;
    line-height: 1.5;
    vertical-align: middle;
    text-align: center;
}

.login-btn:hover,
.register-btn:hover {
    background: #5f2621;
}

/* 下拉菜单样式 */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown > a {
    cursor: pointer;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    padding: 0;
    border-radius: 4px;
    transition: color 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    line-height: 1.5;
    padding-bottom: 2px;
    transform: translateY(1px);
}

.nav-dropdown > a:hover,
.nav-dropdown > a.active {
    color: var(--primary-color);
}

.nav-dropdown.active > a {
    color: var(--primary-color);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--white-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 8px 0;
    z-index: 1000;
    margin-top: 0;
}

/* 添加一个不可见的桥接区域，防止鼠标移动时菜单消失 */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: rgba(139, 69, 19, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 25px;
}

/* ==========================================
   Hero 区域
   ========================================== */
.hero-section {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--primary-bg);
    padding: 100px 20px 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./images/hero-bg.jpg') center top / cover no-repeat;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-overlay);
    z-index: 1;
}


.hero-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-subtitle-en {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 5px;
    color: #8B7355;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero-subtitle-en-second {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 30px;
    color: #8B7355;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero-title {
    font-size: 52px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #6B4423;
    letter-spacing: 3px;
    line-height: 1.2;
}

.hero-title-second {
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 55px;
    color: #8B7355;
    letter-spacing: 2px;
}

.hero-search {
    display: flex;
    max-width: 650px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(107, 68, 35, 0.15);
    border: 1px solid rgba(139, 115, 85, 0.2);
}

.search-input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-size: 15px;
    outline: none;
}

.search-input::placeholder {
    color: #A89B8C;
}

.search-button {
    padding: 16px 40px;
    background: #8B4513;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.search-button:hover {
    background: #6B4423;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 68, 35, 0.3);
}

/* ==========================================
   菜品风味分类
   ========================================== */
.dish-classification {
    padding: 90px 0;
    background: #FDFCFB;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 70px;
    color: #4A3728;
    font-weight: bold;
    letter-spacing: 3px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #8B4513;
    margin: 20px auto 0;
    border-radius: 2px;
}

.cuisine-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cuisine-card {
    background: var(--white-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(107, 68, 35, 0.1);
    transition: all 0.35s ease;
    border: 1px solid rgba(212, 207, 200, 0.5);
    text-align: center;
}

.cuisine-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(107, 68, 35, 0.2);
    border-color: #8B4513;
}

.cuisine-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.cuisine-card:hover img {
    transform: scale(1.05);
}

.cuisine-card h3 {
    padding: 18px 20px 8px;
    font-size: 20px;
    color: #4A3728;
    font-weight: bold;
    letter-spacing: 1px;
}

.cuisine-card p {
    padding: 0 20px 18px;
    color: #8B7355;
    line-height: 1.5;
    font-size: 14px;
}

.view-more-btn {
    margin: 0 20px 20px;
    padding: 9px 28px;
    background: transparent;
    color: #8B4513;
    border: 1.5px solid #8B4513;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.view-more-btn:hover {
    background: #8B4513;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25);
}

.center-btn {
    display: block;
    margin: 40px auto 0;
}

/* ==========================================
   感官属性标准
   ========================================== */
.sensory-attributes {
    padding: 90px 0;
    background: #F5F0EB;
    position: relative;
}

.sensory-attributes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./images/sections/sensory_bg.jpg') center center / cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.sensory-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.sensory-left {
    position: relative;
}

.text-block {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 35px;
    border: 1px solid rgba(212, 207, 200, 0.6);
    box-shadow: 0 4px 20px rgba(107, 68, 35, 0.08);
}

.text-block p {
    color: #5A4A3A;
    line-height: 2;
    font-size: 15px;
    text-align: justify;
}

.tech-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-btn {
    padding: 11px 22px;
    background: transparent;
    color: #8B4513;
    border: 1.5px solid #8B4513;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tech-btn:hover {
    background: #8B4513;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25);
}

.sensory-right {
    text-align: center;
    position: relative;
}

.big-character {
    font-size: 220px;
    font-weight: bold;
    color: #8B4513;
    line-height: 1;
    margin-bottom: 45px;
    font-family: 'STKaiti', 'KaiTi', serif;
    text-shadow: 2px 2px 4px rgba(107, 68, 35, 0.1);
}

.flavor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 35px;
}

.flavor-tag {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.9);
    color: #6B4423;
    border: 1.5px solid #D4CFC8;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.flavor-tag:hover,
.flavor-tag.active {
    background: #8B4513;
    color: white;
    border-color: #8B4513;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--white-bg);
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
}

.carousel-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ==========================================
   可视化报告
   ========================================== */
.visual-reports {
    padding: 90px 0;
    background: #FDFCFB;
}

.report-header {
    text-align: center;
    margin-bottom: 70px;
}

.report-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.report-dot {
    width: 10px;
    height: 10px;
    background: #8B4513;
    border-radius: 50%;
}

.report-label {
    font-size: 12px;
    letter-spacing: 3px;
    color: #8B7355;
    font-weight: 600;
    text-transform: uppercase;
}

.reports-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.report-slide {
    padding: 50px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(107, 68, 35, 0.12);
    transition: all 0.4s ease;
    min-width: 300px;
}

.report-slide.primary {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 35px rgba(139, 69, 19, 0.3);
}

.report-slide.secondary {
    background: rgba(255, 255, 255, 0.9);
    opacity: 0.85;
    border: 1px solid rgba(212, 207, 200, 0.6);
}

.report-slide.secondary:hover {
    opacity: 1;
    transform: scale(1.02);
}

.report-info {
    font-size: 13px;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.95);
    letter-spacing: 1px;
}

.report-slide.secondary .report-info {
    color: #A89B8C;
}

.report-title {
    font-size: 19px;
    font-weight: bold;
    line-height: 1.7;
    letter-spacing: 0.5px;
}

.report-slide.secondary .report-title {
    color: #4A3728;
}

.report-subtitle {
    font-size: 14px;
    margin-top: 10px;
    color: rgba(255,255,255,0.85);
}

.carousel-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white-bg);
    border: 2px solid var(--border-color);
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s;
    color: var(--text-gray);
}

.carousel-arrow:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ==========================================
   重要文献
   ========================================== */
.literature {
    padding: 90px 0;
    background: #F5F0EB;
}

.literature-header {
    text-align: center;
    margin-bottom: 70px;
}

.literature-tag {
    display: inline-block;
    margin-bottom: 18px;
}

.tag-text {
    font-size: 12px;
    letter-spacing: 3px;
    color: #8B7355;
    font-weight: 600;
    text-transform: uppercase;
}

.literature-layout {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.lit-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.image-cluster {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lit-images img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(212, 207, 200, 0.6);
    box-shadow: 0 3px 12px rgba(107, 68, 35, 0.1);
    transition: all 0.3s ease;
}

.lit-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(107, 68, 35, 0.2);
}

.lit-texts {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.lit-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 8px;
    border: 1px solid rgba(212, 207, 200, 0.6);
    box-shadow: 0 3px 15px rgba(107, 68, 35, 0.08);
    transition: all 0.3s ease;
}

.lit-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(107, 68, 35, 0.15);
}

.lit-item h3 {
    font-size: 18px;
    margin-bottom: 14px;
    color: #4A3728;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.lit-item p {
    color: #6B5A4A;
    margin-bottom: 14px;
    line-height: 1.8;
    font-size: 14px;
}

.lit-date {
    font-size: 13px;
    color: #A89B8C;
}

.lit-controls {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #D4CFC8;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B7355;
}

.nav-btn:hover {
    border-color: #8B4513;
    color: #8B4513;
    background: white;
    transform: scale(1.1);
}

/* ==========================================
   消费者数据
   ========================================== */
.consumer-data {
    padding: 90px 0;
    background: #FDFCFB;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.testimonial {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(107, 68, 35, 0.1);
    border: 1px solid rgba(212, 207, 200, 0.6);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(107, 68, 35, 0.15);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #D4CFC8;
}

.user-name {
    font-weight: bold;
    color: #4A3728;
    font-size: 15px;
}

.user-date {
    font-size: 13px;
    color: #A89B8C;
    margin-left: auto;
}

.quote {
    font-size: 15px;
    color: #6B5A4A;
    line-height: 1.9;
    padding: 22px;
    background: #F5F0EB;
    border-left: 4px solid #8B4513;
    border-radius: 6px;
    position: relative;
}

.quote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 40px;
    color: rgba(139, 69, 19, 0.2);
    font-family: Georgia, serif;
}

/* ==========================================
   页脚
   ========================================== */
.main-footer {
    background: #2A2420;
    color: #A89B8C;
    padding: 70px 0 35px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 70px;
    margin-bottom: 45px;
}

.footer-column h4 {
    color: #F5F0EB;
    font-size: 17px;
    margin-bottom: 24px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.footer-column a {
    display: block;
    color: #A89B8C;
    text-decoration: none;
    margin-bottom: 14px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-column a:hover {
    color: #F5F0EB;
    padding-left: 5px;
}

.footer-column p {
    margin-bottom: 12px;
    color: #A89B8C;
    font-size: 14px;
    line-height: 1.8;
}

.qr-codes {
    display: flex;
    gap: 25px;
    margin-top: 25px;
}

.qr-item {
    text-align: center;
}

.qr-item img {
    width: 105px;
    height: 105px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid #3A3430;
    transition: all 0.3s ease;
}

.qr-item img:hover {
    border-color: #8B4513;
    transform: scale(1.05);
}

.qr-item span {
    display: block;
    font-size: 13px;
    color: #A89B8C;
}

.footer-copyright {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid #3A3430;
    font-size: 13px;
    color: #7A6A5A;
}

.footer-copyright p {
    margin-bottom: 6px;
}

/* ==========================================
   响应式设计
   ========================================== */
@media (max-width: 1200px) {
    .cuisine-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .header-container {
        flex-wrap: wrap;
    }

    .main-nav {
        gap: 15px;
        font-size: 14px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-title-second {
        font-size: 22px;
    }

    .cuisine-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sensory-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .big-character {
        font-size: 150px;
    }

    .literature-layout {
        grid-template-columns: 1fr;
    }

    .lit-controls {
        flex-direction: row;
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        flex-direction: column;
        gap: 10px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-title-second {
        font-size: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .cuisine-grid {
        grid-template-columns: 1fr;
    }

    .big-character {
        font-size: 100px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .reports-carousel {
        flex-direction: column;
    }

    .report-slide.primary {
        transform: scale(1);
    }
}

/* ==========================================
   数据研究页面
   ========================================== */
.search-filter-section {
    background: var(--primary-color);
    padding: 30px 0;
}

.search-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.report-search {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    background: var(--white-bg);
}

.filters {
    display: flex;
    gap: 15px;
}

.filter-dropdown {
    padding: 15px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    background: var(--white-bg);
}

.confirm-btn {
    padding: 15px 30px;
    background: var(--white-bg);
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
}

.confirm-btn:hover {
    background: var(--primary-bg);
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 50px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.report-card {
    background: var(--white-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid var(--border-color);
}

.report-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.report-category {
    padding: 5px 12px;
    background: var(--primary-bg);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-gray);
}

.report-rating {
    color: #ffa500;
    font-size: 14px;
}

.report-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.report-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.report-tag {
    padding: 5px 12px;
    background: var(--primary-bg);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-gray);
}

.report-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.report-download {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 30px;
    cursor: pointer;
    color: var(--primary-color);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

/* ==========================================
   智能查询页面
   ========================================== */
.query-main {
    padding: 60px 0;
    background: var(--primary-bg);
}

.query-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.query-left {
    background: var(--white-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
}

.query-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: bold;
}

.query-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.reset-btn, .query-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.reset-btn {
    background: var(--primary-bg);
    color: var(--text-gray);
}

.reset-btn:hover {
    background: var(--secondary-bg);
}

.query-btn {
    background: var(--primary-color);
    color: white;
}

.query-btn:hover {
    background: #5f2621;
}

.selected-info {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    min-height: 80px;
    background: var(--primary-bg);
    padding: 15px;
    border-radius: 6px;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 14px;
}

.tag-close {
    cursor: pointer;
}

.category-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.tab-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tab-btn {
    padding: 12px;
    background: var(--primary-bg);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.option-btn {
    padding: 12px;
    background: var(--white-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.option-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.query-right {
    background: var(--white-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
    width: 100%;
}

.empty-state {
    text-align: center;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.empty-text {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-hint {
    font-size: 14px;
    color: var(--text-light);
}

/* ==========================================
   风味百科页面
   ========================================== */
.search-bar-mini {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin-top: 30px;
}

.search-input-mini {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    background: var(--white-bg);
    color: var(--text-dark);
    border-radius: 6px;
    font-size: 16px;
}

.search-input-mini::placeholder {
    color: var(--text-light);
}

.analyze-btn {
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

.analyze-btn:hover {
    background: #5f2621;
}

.ingredient-detail {
    padding: 60px 0;
    background: var(--white-bg);
}

.detail-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ingredient-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.ingredient-name-en {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.ingredient-name-cn {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.ingredient-meta {
    margin-bottom: 40px;
}

.ingredient-meta p {
    margin-bottom: 10px;
    color: var(--text-gray);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-box {
    background: var(--primary-bg);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.feature-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.feature-status {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
}

.detailed-analysis {
    padding: 60px 0;
    background: var(--primary-bg);
}

.analysis-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.analysis-tab {
    padding: 12px 30px;
    background: var(--white-bg);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.analysis-tab:hover,
.analysis-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.analysis-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.analysis-title {
    font-size: 20px;
    margin-bottom: 30px;
    color: #333;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bar-label {
    width: 100px;
    font-size: 14px;
    color: #666;
}

.detail-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 15px;
}

.nav-arrow {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.nav-arrow:hover {
    border-color: #8B4513;
    color: #8B4513;
}

.detail-list {
    background: white;
    padding: 30px;
    border-radius: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-name {
    color: #666;
}

.detail-value {
    font-weight: bold;
    color: #8B4513;
}

.compounds-section {
    padding: 60px 0;
    background: white;
}

.compounds-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.compound-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.compound-formula {
    font-family: monospace;
    font-size: 16px;
    color: #8B4513;
    margin-bottom: 15px;
}

.compound-name {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.compound-info {
    text-align: left;
}

.compound-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

/* ==========================================
   导航链接激活状态（已在头部导航部分定义）
   ========================================== */

/* ==========================================
   图谱探索页面
   ========================================== */
.map-visualization {
    padding: 60px 0;
    background: var(--white-bg);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.map-title {
    font-size: 28px;
    color: var(--text-dark);
    font-weight: bold;
}

.map-controls {
    display: flex;
    gap: 15px;
}

.map-btn {
    padding: 10px 25px;
    background: var(--white-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.map-btn:hover,
.map-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.map-canvas {
    background: var(--primary-bg);
    border-radius: 12px;
    padding: 40px;
    min-height: 500px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.map-node.large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #9a4038 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(124, 51, 44, 0.3);
}

.map-nodes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 100px;
}

.map-node {
    width: 80px;
    height: 80px;
    background: var(--white-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.map-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(124, 51, 44, 0.2);
}

.relationship-details {
    padding: 60px 0;
    background: var(--primary-bg);
}

.section-subtitle {
    font-size: 22px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
    font-weight: bold;
}

.relationship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.relation-card {
    background: var(--white-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid var(--border-color);
}

.relation-card img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.relation-info {
    flex: 1;
}

.relation-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: bold;
}

.relation-desc {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.relation-strength {
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-label {
    font-size: 12px;
    color: var(--text-light);
}

.strength-bar {
    flex: 1;
    height: 8px;
    background: var(--secondary-bg);
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, #9a4038 100%);
    border-radius: 4px;
    transition: width 1s;
}

.strength-value {
    font-size: 12px;
    font-weight: bold;
    color: var(--primary-color);
}

.usage-scenarios {
    padding: 60px 0;
    background: var(--white-bg);
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.scenario-card {
    background: var(--primary-bg);
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.scenario-card:hover {
    background: var(--white-bg);
    box-shadow: 0 8px 25px rgba(124, 51, 44, 0.15);
    transform: translateY(-5px);
}

.scenario-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.scenario-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: bold;
}

.scenario-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ==========================================
   风味百科页面专用样式
   ========================================== */

/* Logo 区域 */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1;
}

/* 搜索筛选区域 */
.search-filter-section {
    background: var(--primary-bg);
    padding: 30px 0;
}

.search-filter-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.search-input-group {
    display: flex;
    flex: 1;
    max-width: 300px;
}

.search-filter-bar .search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-btn {
    padding: 12px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #5f2621;
}

.filter-group {
    display: flex;
    gap: 15px;
}

.search-filter-bar .filter-select {
    padding: 12px 15px;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px;
    background: var(--white-bg);
    font-size: 14px;
    min-width: 120px;
}

.clear-filters-btn {
    padding: 12px 20px;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-gray);
    transition: background 0.3s;
}

.clear-filters-btn:hover {
    background: var(--secondary-bg);
}

/* 菜系分类区域 */
.cuisine-classification {
    padding: 60px 0;
    background: var(--white-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: bold;
    letter-spacing: 1px;
}

.section-title {
    font-size: 36px;
    color: var(--text-dark);
    margin: 15px 0 0 0;
    font-weight: bold;
}

.cuisine-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cuisine-card {
    background: var(--white-bg);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border: 1px solid var(--border-color);
}

.cuisine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(124, 51, 44, 0.15);
}

.cuisine-character {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cuisine-name {
    font-size: 20px;
    color: var(--text-dark);
    margin: 0 0 5px 0;
    font-weight: bold;
}

.cuisine-count {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0 0 15px 0;
}

.cuisine-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.cuisine-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.cuisine-tags .tag {
    background: var(--primary-bg);
    color: var(--text-gray);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.cuisine-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* 菜品列表区域 */
.dish-list-section {
    padding: 60px 0;
    background: var(--primary-bg);
}

.dish-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.dish-card {
    background: var(--white-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    gap: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.dish-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 51, 44, 0.15);
}

.dish-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.dish-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dish-name {
    font-size: 20px;
    color: var(--text-dark);
    margin: 0;
    font-weight: bold;
}

.dish-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.difficulty-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.difficulty-tag.simple {
    background: #e8f5e8;
    color: #2e7d32;
}

.difficulty-tag.medium {
    background: #fff3e0;
    color: #f57c00;
}

.difficulty-tag.spicy {
    background: #ffebee;
    color: #d32f2f;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #ffc107;
    font-size: 16px;
}

.rating-text {
    font-size: 14px;
    color: var(--text-gray);
}

.dish-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

.dish-tags {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cuisine-tag {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.time-servings {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-gray);
}

.dish-keywords {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.keyword {
    background: var(--primary-bg);
    color: var(--text-gray);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
}

.dish-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.compare-btn, .detail-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.compare-btn {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-gray);
}

.compare-btn:hover {
    background: var(--secondary-bg);
}

.detail-btn {
    background: var(--primary-color);
    border: none;
    color: white;
}

.detail-btn:hover {
    background: #5f2621;
}

/* 分页 */
.pagination-container .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding-left: 0;
    list-style: none;
}

.pagination .page-item .page-link {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    background: var(--white-bg);
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    display: block;
}

.pagination .page-item .page-link:hover {
    background: var(--primary-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    cursor: default;
}

.pagination .page-item.disabled .page-link,
.pagination .page-item.disabled span {
    background: var(--secondary-bg);
    color: var(--text-light);
    border-color: var(--border-color);
    cursor: not-allowed;
}

/* ==========================================
   数据列表页面 (原料/工艺/品质)
   ========================================== */
.data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.data-card {
    background: var(--white-bg);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(124, 51, 44, 0.15);
}

.data-card .dish-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    border: none;
}

.data-card .dish-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ==========================================
   数据列表页面 (原料/工艺/品质)
   ========================================== */
.data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.data-card {
    background: var(--white-bg);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(124, 51, 44, 0.15);
}

.data-card .dish-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    border: none;
}

.data-card .dish-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ==========================================
   数据列表页面 (原料/工艺/品质)
   ========================================== */
.data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.data-card {
    background: var(--white-bg);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(124, 51, 44, 0.15);
}

.data-card .dish-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    border: none;
}

.data-card .dish-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ==========================================
   数据列表页面 (原料/工艺/品质)
   ========================================== */
.data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.data-card {
    background: var(--white-bg);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(124, 51, 44, 0.15);
}

.data-card .dish-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    border: none;
}


/* --- Login & Signup Styles --- */

/* Login Modal */
.login-modal-container {
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}
.login-modal-box {
    width: 380px;
    padding: 20px 30px 30px;
    background: #fff;
    box-shadow: 0 5px 15px 0 rgba(0,0,0,0.15);
    border-radius: 4px;
    font-size: 16px;
    text-align: left;
    top: 50%;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.login-modal-box .logo {
    margin-top: 0;
    margin-bottom: 25px;
}
.login-modal-box .close {
    width: 20px;
    height: 20px;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAAoFJREFUaAXt2jtOw0AQANAYmigtBRItBYKGqyRNiiQKkuWKggMgQQHkBiAkBOmcIk1OALcACpRrpEmImTE2sqJ4vfbOzBppXcSfeHfnjT/SjtxouMVlwGXAZcBlwGXg/2RgOBzu9Xq9qyiKvLpGDfFdBkGwrxPfjuokxC6Xy1fA3kCnz3VE9/v9B4hrtFgs3nTQSvBqtTqHhJwmSfHrhkbser3GGBuAPgH0RRJr7koJDsPwDlqOM61rg85iMT7P88J2u32diXXrZuFzibcxXllo7Wd6GE8mkwAGiTLHxDZzsGfdbve7KIhCMHZQJ7QJFi1a4LqgTbGlwLbRFNjSYFtoKmwlsDSaElsZLIWmxhqBudEcWGMwF5oLSwKmRnNiycBUaG4sKdgULYElB1dFS2FZwGXRklg2sC5aGssKLkIPBoP7dPIeB/I7n9Wa4uH5VRft2VLVAXKmlp/Q33HaZzJ5Z8fieOxgHCQHjX+llQoRbDxePKrAT4J+h6H+rixszzudzpFOpYIqRGVNi2oQ7AefWVhlsXj4cDabPWEycEdiEQFvvo0BNs/gRAuD7OBNLL6g8DYGsJVqKCt4GxZKqfELCqueNtBsz44Km97OOW9v1hIwC1gHawtNDi6DtYEmBVfBSqPJwCZYSTQJmAIrhTYGU2Il0EZgDiw3ujKYE8uJrgSWwHKhS4MlsRzoUmAbWGq0NtgmlhKtBa4DlgpdCK4TlgKtnA/jF242SqkpLG+NXw9tm0/DxbnJa5MeV4JbrdYLdP6BJ0uWUtPgVOtNNOx/NZvNR1Ubrf/wcz640qPpdLqr1UD4pKSIcOv7/oHw0G44lwGXAZcBlwGXAZeBkhn4AcrY4LAgdyEWAAAAAElFTkSuQmCC) no-repeat 50%;
    background-size: 100% 100%;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

/* Login/Signup Tabs */
.login-tabs {
    display: flex;
    width: 100%;
    margin-bottom: 30px;
}
.login-tab-item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    position: relative;
    border-bottom: 1px solid #eee;
}
.login-tab-item.active {
    color: #333;
    font-weight: bold;
    border-bottom: 2px solid #333;
}
.login-tab-content { display: none; width: 100%; }
.login-tab-content.active { display: block; }

/* Shared Form Styles */
.mian10 { width: 100%; padding: 0; margin: 0; }
.mian10 > div {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-direction: row;
}
.mian10 .number {
    border: none;
    flex: 1;
    height: 44px;
    padding-left: 15px;
    font-size: 16px;
}
.mian10 .code10 { width: auto; }
.mian10 .send-normal-code {
    padding-right: 15px;
    font-size: 14px;
    color: #8B4513;
    cursor: pointer;
}
.extra-links {
    text-align: right;
    margin-top: 15px;
    padding: 0 5px;
}
.extra-links a { font-size: 13px; color: #999; margin-left: 15px; }

/* Signup Page Specific */
.dt-form-container .mian10 > div {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
}
.area-tips {
    border: none;
    font-size: 14px;
    color: #f95355;
    padding: 5px 0 0;
}

/* Footer */
.login-modal-box footer {
    margin-top: 25px;
}
.login-modal-box footer .user-center-policy {
    font-size: 12px;
    color: #a7a7a7;
}


.data-card .dish-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}


/* --- Pagination Styles --- */
.pagination-container .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding-left: 0;
    list-style: none;
}
.pagination-container .pagination .page-item .page-link,
.pagination-container .pagination .page-item span {
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    background: var(--white-bg);
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pagination-container .pagination .page-item .page-link:hover {
    background: var(--primary-bg);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pagination-container .pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    cursor: default;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.3);
}

.pagination-container .pagination .page-item.disabled span {
    background: var(--secondary-bg);
    color: var(--text-light);
    border-color: var(--border-color);
    cursor: not-allowed;
    box-shadow: none;
}
