/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

:root {
    /* 主色调 - 云昇科技绿色基调 */
    --primary-color: #21A179;
    --primary-light: #34d5a4;
    --primary-dark: #198060;
    --secondary-color: #4c62e2;
    --secondary-light: #6d7ff0;
    --accent-color: #ff6b6b;
    
    /* 背景色 */
    --bg-color: #0a192f;
    --card-bg: rgba(15, 25, 45, 0.7);
    --glass-bg: rgba(19, 28, 46, 0.6);
    
    /* 文字颜色 */
    --text-color: #e6f1ff;
    --text-muted: #a8b2d1;
    
    /* 特效 */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --glow: 0 0 10px rgba(33, 161, 121, 0.5);
    --glow-strong: 0 0 15px rgba(33, 161, 121, 0.8);
    --shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    --shadow-lg: 0 15px 40px rgba(6, 15, 29, 0.7);
    
    /* 网格线 */
    --grid-color: rgba(33, 161, 121, 0.1);
    --success-color: #4CAF50;
    --error-color: #E74C3C;
}

body {
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    /* 注释掉可能引起问题的 background-image */
    /* background-image: 
        radial-gradient(circle at 15% 50%, rgba(33, 161, 121, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(10, 132, 255, 0.05) 0%, transparent 30%); */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* 添加主容器样式 */
.container {
  max-width: 1400px;
  width: 100%;
    margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

/* 添加装饰圆形元素样式 */
.tech-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
  pointer-events: none;
}

.tech-circle-1 {
  top: 120px;
  left: 5%;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(33, 161, 121, 0.4);
  animation: float 8s ease-in-out infinite;
}

.tech-circle-2 {
  bottom: 120px;
  right: 5%;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(76, 98, 226, 0.4);
  animation: float 6s ease-in-out infinite reverse;
}

/* 头部导航 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(33, 161, 121, 0.1);
}

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

.logo img {
    height: auto;
    max-height: 40px;
    width: auto;
    margin-right: 0;
    filter: none;
    animation: none;
    transition: var(--transition);
    object-fit: contain;
}

/* Add more specific styling for the header logo */
#header-logo {
    display: block;
    background-color: white;
    padding: 5px;
    border-radius: 4px;
    max-width: 120px;
}

.logo h1 {
    font-size: 28px;
    color: #00ffaa;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
    position: relative;
    font-weight: 600;
    letter-spacing: 1px;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: var(--transition);
}

.logo:hover h1::after {
    opacity: 1;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 6px;
    font-size: 15px;
    transition: var(--transition);
}

nav ul li a:hover, 
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a:hover i, 
nav ul li a.active i {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.contact-btn {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 20px;
    margin-left: 10px;
    box-shadow: 0 4px 15px rgba(33, 161, 121, 0.2);
}

.contact-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 161, 121, 0.3);
}

.contact-btn::after {
    display: none;
}

/* Banner区域 */
.banner {
    position: relative;
    height: 650px;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: white;
    overflow: hidden;
    padding-bottom: 10px;
    margin-bottom: 0;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
    z-index: 1;
}

#particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    transform: translateY(15%);
}

/* 添加tech-badge样式 */
.tech-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(0, 255, 180, 0.2), rgba(76, 98, 226, 0.2));
    color: #00ffb4;
    border-radius: 8px;
    position: absolute;
    top: 15px;
    right: 15px;
    border: 1px solid rgba(0, 255, 180, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 180, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    backdrop-filter: blur(5px);
    animation: pulse-badge 3s infinite alternate ease-in-out;
}

.tech-badge::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 8px;
    background: linear-gradient(135deg, #00ffb4, #4c62e2);
    z-index: -1;
    opacity: 0.2;
    animation: rotate-border 6s linear infinite;
}

@keyframes pulse-badge {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 180, 0.3);
    }
    100% {
        box-shadow: 0 0 15px rgba(0, 255, 180, 0.6);
    }
}

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

/* 为分享卡片添加高级头部样式 */
.share-card-header .tech-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    transform: scale(0.9);
}

.banner-content h2 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-color);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.banner-content h2 .highlight {
    color: var(--primary-color);
    text-shadow: var(--glow);
    position: relative;
}

.banner-content h2 .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
    border-radius: 4px;
}

.banner-content p {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.banner-content .company-info {
    font-size: 16px;
    color: var(--text-muted);
    opacity: 0.8;
    font-style: italic;
    margin-bottom: 5px;
}

.banner-content .website {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 500;
}

.banner-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.explore-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    font-size: 16px;
    font-weight: 500;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(33, 161, 121, 0.3);
    transition: var(--transition);
    background-position: 0% 0%;
    transition: background-position 0.3s ease, transform 0.2s ease;
}

.explore-btn i {
    margin-left: 8px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.explore-btn:hover i {
    transform: translateX(4px);
}

.tech-btn {
    padding: 12px 25px;
    background: rgba(17, 34, 64, 0.7);
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(33, 161, 121, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background-position: 0% 0%;
    transition: background-position 0.3s ease, transform 0.2s ease;
}

.tech-btn i {
    margin-right: 8px;
    color: var(--primary-color);
}

.tech-btn:hover {
    background: rgba(33, 161, 121, 0.1);
    transform: translateY(-3px);
}

.banner-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: var(--glow);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* 气味库区域 */
.scent-library {
    padding-top: 20px !important; /* 减少顶部间距 */
    margin-top: 0 !important;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #0a192f, #1c2c4c);
    overflow: hidden;
}

.scent-library::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(33, 161, 121, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(76, 98, 226, 0.15) 0%, transparent 40%);
    opacity: 0.8;
    pointer-events: none;
}

.scent-library h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-shadow: var(--glow);
    position: relative;
    display: inline-block;
    
    /* 删除左侧定位和transform，使用专门的容器居中 */
    left: auto;
    transform: none;
    margin: 0 auto 10px;
}

.scent-library h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.library-desc {
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* 搜索框 */
.search-container {
    max-width: 800px;
    margin: 0 auto 25px;
    display: flex;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(33, 161, 121, 0.3);
    transition: all 0.3s ease;
    background-color: rgba(15, 25, 45, 0.7);
    backdrop-filter: blur(8px);
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

#search-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    background-color: transparent;
    color: var(--text-color);
}

#search-input::placeholder {
    color: var(--text-muted);
}

.filter-btn, .search-btn {
    padding: 0 24px;
    background-color: rgba(33, 161, 121, 0.1);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
}

.filter-btn:hover {
    background-color: rgba(33, 161, 121, 0.2);
    color: var(--primary-color);
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* 分类容器 */
.category-container {
    margin: 20px auto;
    max-width: 1000px;
    padding: 20px;
    background: rgba(19, 28, 46, 0.5);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.category-container h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* 解决分类标签文字不完整问题 */
.category-btn {
    padding: 12px 18px;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: rgba(18, 26, 41, 0.8);
    border: 1px solid rgba(33, 161, 121, 0.3);
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    letter-spacing: -0.2px;
    position: relative;
    z-index: 1;
    margin: 0 2px;
}

/* 添加meta容器用于展示额外信息 */
.category-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 20px;
}

.category-count {
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(33, 161, 121, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin: 0 10px;
}

.category-btn:hover {
    transform: translateY(-2px);
    background-color: rgba(24, 36, 64, 0.9);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-btn.active {
    background-color: var(--primary-color);
    color: var(--light-text);
    border-color: var(--primary-color);
    box-shadow: var(--glow);
}

/* 气味卡片增强样式 */
.scent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px auto;
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
}

.scent-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.scent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.scent-card.clicked {
    transform: scale(0.98);
    opacity: 0.9;
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(15, 25, 45, 0.6), rgba(15, 25, 45, 0.2) 50%, transparent);
    z-index: 2;
}

.card-image img {
    content-visibility: auto;
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.scent-card:hover .card-image img {
    transform: scale(1.05);
}

/* 标签样式增强 */
.card-id {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(33, 161, 121, 0.15), rgba(76, 98, 226, 0.15));
    color: var(--primary-light);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
    border: 1px solid rgba(33, 161, 121, 0.2);
    box-shadow: 0 2px 10px rgba(33, 161, 121, 0.1);
}

.card-id::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: 0.6s;
    z-index: -1;
}

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

/* 在小设备上优化卡片网格 */
@media (max-width: 768px) {
    .scent-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .card-image {
        height: 160px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .card-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
}

/* 添加加载动画 */
@keyframes card-loading {
    0% {
        transform: translateY(15px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.scent-card {
    animation: card-loading 0.5s ease forwards;
    opacity: 0;
}

/* 错开卡片加载时间 */
.scent-card:nth-child(2) { animation-delay: 0.05s; }
.scent-card:nth-child(3) { animation-delay: 0.1s; }
.scent-card:nth-child(4) { animation-delay: 0.15s; }
.scent-card:nth-child(5) { animation-delay: 0.2s; }
.scent-card:nth-child(6) { animation-delay: 0.25s; }
.scent-card:nth-child(7) { animation-delay: 0.3s; }
.scent-card:nth-child(8) { animation-delay: 0.35s; }

/* 添加炫酷的科技线条装饰 */
.tech-line {
    position: absolute;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  height: 1px;
    width: 100%;
  max-width: 1200px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.3;
}

.tech-line-1 {
  top: 50px;
  animation: width-pulse 4s ease-in-out infinite;
}

.tech-line-2 {
  bottom: 50px;
  animation: width-pulse 5s ease-in-out infinite reverse;
}

@keyframes width-pulse {
  0%, 100% {
    width: 80%;
    opacity: 0.3;
  }
  50% {
    width: 95%;
    opacity: 0.5;
  }
}

/* 增强卡片悬浮效果 */
.scent-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.scent-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* 添加卡片内容渐入效果 */
.card-content > * {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0.9;
  transform: translateY(0);
}

.scent-card:hover .card-content > * {
  opacity: 1;
  transform: translateY(-2px);
}

.scent-card:hover .card-title {
  color: var(--primary-light);
  text-shadow: 0 0 8px rgba(33, 161, 121, 0.3);
}

/* 顶部导航栏科技感增强 */
header {
  background: rgba(10, 25, 47, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(33, 161, 121, 0.1);
}

nav ul li a {
    position: relative;
  overflow: hidden;
}

nav ul li a::after {
    content: '';
    position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 80%;
}

/* 添加科技感装饰到气味库标题 */
.scent-library h2 {
    position: relative;
    overflow: hidden;
  padding-bottom: 15px;
}

.scent-library h2::before {
    content: '';
    position: absolute;
  height: 3px;
  width: 60px;
  bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

/* AI推荐区域增强效果 */
.ai-recommendation-container {
    position: relative;
  z-index: 1;
  overflow: visible;
}

.ai-recommendation-container::after {
    content: '';
    position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  z-index: -2;
  border-radius: 22px;
  opacity: 0.3;
  filter: blur(8px);
}

/* 添加动态装饰元素 */
.scent-library::after {
    content: '';
    position: absolute;
  top: 80px;
  right: 80px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(33, 161, 121, 0.3);
  border-radius: 50%;
  opacity: 0.2;
  animation: float 6s ease-in-out infinite;
}

/* 添加科技感装饰元素到AI推荐容器 */
.ai-recommendation-header {
    position: relative;
}

.ai-recommendation-header::before,
.ai-recommendation-header::after {
    content: '';
    position: absolute;
  height: 20px;
  width: 2px;
  background: var(--primary-color);
  left: -15px;
    top: 50%;
    transform: translateY(-50%);
  opacity: 0.7;
}

.ai-recommendation-header::after {
  height: 10px;
  left: -25px;
}

.ai-recommendation-header h3 {
  display: inline-flex;
    align-items: center;
}

/* 创建专门用于居中标题的容器 */
.title-container {
    width: 100%;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

/* 详情查看更多按钮样式 */
.see-more-btn {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(33, 161, 121, 0.8), rgba(10, 132, 255, 0.8));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(10, 132, 255, 0.2);
    text-align: center;
}

.see-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 132, 255, 0.3);
    background: linear-gradient(135deg, rgba(33, 161, 121, 1), rgba(10, 132, 255, 1));
}

.see-more-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.see-more-btn:hover::before {
    opacity: 1;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(0.95);
    }
}

/* 分页控件样式优化 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    padding: 20px 0;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.page-number {
    min-width: 36px;
    height: 36px;
    background: rgba(33, 161, 121, 0.1);
    border: 1px solid rgba(33, 161, 121, 0.2);
    color: var(--text-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0 10px;
}

.page-number:hover:not(.active) {
    background: rgba(33, 161, 121, 0.2);
    transform: translateY(-2px);
}

.page-number.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(33, 161, 121, 0.3);
}

.page-ellipsis {
    color: var(--text-muted);
    padding: 0 5px;
    user-select: none;
}

.pagination-btn {
    background: rgba(33, 161, 121, 0.1);
    border: 1px solid rgba(33, 161, 121, 0.2);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(33, 161, 121, 0.2);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(33, 161, 121, 0.05);
}

.pagination-btn i {
    font-size: 18px;
}

/* 确保气味卡片网格正确显示 */
.scent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px auto;
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
}

/* 优化无结果提示样式 */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: rgba(33, 161, 121, 0.1);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 16px;
    border: 1px solid rgba(33, 161, 121, 0.2);
}

/* 优化模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    margin: 5% auto;
    width: 85%;
    max-width: 900px;
    animation: modalFadeIn 0.3s ease;
}

.close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    z-index: 10000;
}

.close:hover,
.close:focus {
    color: #00ffaa;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-body {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.scent-image-container {
    flex: 0 0 300px;
}

.scent-image-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.scent-info {
    flex: 1;
}

.scent-description {
    margin-bottom: 20px;
}

.scent-description h3 {
    margin-bottom: 10px;
    color: #333;
}

.scent-description p {
    color: #666;
    line-height: 1.6;
}

.modal-footer {
    text-align: right;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 提示消息样式 */
.custom-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 10000;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.custom-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* 适配移动设备 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .scent-image-container {
        margin-bottom: 20px;
    }
}

/* 确保模态框在body.modal-open时应用正确的样式 */
body.modal-open {
    overflow: hidden;
    padding-right: 15px; /* 防止滚动条消失导致页面跳动 */
}

/* 气味详情模态框内容样式 */
#scent-modal-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.scent-id-label {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* 下载按钮样式 */
#download-scent {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #0a192f;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#download-scent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.5);
}

#download-scent:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(79, 172, 254, 0.3);
}

#download-scent i {
    font-size: 18px;
}

.modal-footer {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    border-top: 1px solid rgba(79, 172, 254, 0.2);
    margin-top: 15px;
}

/* 优化AI描述样式 */
.ai-description {
    background-color: rgba(10, 25, 47, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(79, 172, 254, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ai-description p {
    margin: 0;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    text-align: justify;
    letter-spacing: 0.5px;
    font-weight: 400;
}