/* 全局样式重置和变量定义 */
:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --accent-color: #ff6b35;
    --background-dark: #0a0e1a;
    --background-darker: #040810;
    --card-background: rgba(18, 25, 40, 0.9);
    --text-primary: #ffffff;
    --text-secondary: #b3c5d1;
    --text-muted: #7a8b9a;
    --border-color: rgba(0, 212, 255, 0.3);
    --border-glow: rgba(0, 212, 255, 0.6);
    --success-color: #4ade80;
    --warning-color: #fbbf24;
    --error-color: #ef4444;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099cc 50%, #0066aa 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 背景动效 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at center, #0a0e1a 0%, #040810 100%);
}

/* 粒子动效 */
.particle {
    position: absolute;
    background: var(--primary-color);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 10px var(--primary-color);
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 40%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    top: 40%;
    left: 70%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    top: 30%;
    left: 10%;
    animation-delay: 3s;
    animation-duration: 11s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* 浮动图标 */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icons i {
    position: absolute;
    font-size: 24px;
    color: var(--primary-color);
    opacity: 0.1;
    animation: floatIcons 15s linear infinite;
}

.floating-icons i:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icons i:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 3s;
}

.floating-icons i:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 6s;
}

.floating-icons i:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 9s;
}

.floating-icons i:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 12s;
}

@keyframes floatIcons {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        opacity: 0.3;
    }
    50% {
        transform: translateY(-15px) rotate(90deg);
        opacity: 0.2;
    }
    75% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(0px) rotate(360deg);
        opacity: 0.1;
    }
}

/* 容器样式 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* 头部样式 */
.header {
    padding: 40px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 204, 0.05) 100%);
    border-radius: 20px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    animation: slideInDown 1s ease-out;
}

.header-content .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.header-content .logo i {
    font-size: 48px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s ease-in-out infinite;
}

.header-content h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    margin: 0;
}

.header-subtitle p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 统计栏样式 */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
    padding: 15px 25px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 204, 0.05) 100%);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-glow);
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 搜索和高级精选区域样式 */
.search-premium-section {
    margin-bottom: 30px;
    animation: slideInUp 1s ease-out 0.2s both;
}

.search-premium-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    padding: 20px;
    max-width: 1000px;
    flex-wrap: wrap;
}

/* 搜索框样式 */
.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 45px;
    background: rgba(18, 25, 40, 0.9);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    background: rgba(18, 25, 40, 0.95);
}

.search-box input::placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* 搜索按钮样式 */
.search-btn {
    padding: 15px 25px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    min-width: 100px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.premium-btn {
    padding: 15px 30px;
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.premium-btn:hover {
    background: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.premium-btn.active {
    background: var(--gradient-secondary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* 星级筛选下拉框样式 */
.star-filter-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(18, 25, 40, 0.6);
    padding: 10px 15px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.star-filter-container:hover {
    border-color: var(--border-glow);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.star-filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.star-filter-label i {
    color: var(--warning-color);
    font-size: 1rem;
}

.star-filter-select {
    padding: 8px 30px 8px 12px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(0, 212, 255)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 18px;
    min-width: 180px;
}

.star-filter-select:focus {
    outline: none;
    color: var(--primary-color);
}

.star-filter-select option {
    background: rgba(18, 25, 40, 0.98);
    color: var(--text-primary);
    padding: 10px;
    font-size: 0.95rem;
}

.sort-filter-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(18, 25, 40, 0.6);
    padding: 10px 15px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.sort-filter-container:hover {
    border-color: var(--border-glow);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.sort-filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.sort-filter-label i {
    color: var(--primary-color);
    font-size: 1rem;
}

.sort-filter-select {
    padding: 8px 30px 8px 12px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(0, 212, 255)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 18px;
    min-width: 180px;
}

.sort-filter-select:focus {
    outline: none;
    color: var(--primary-color);
}

.sort-filter-select option {
    background: rgba(18, 25, 40, 0.98);
    color: var(--text-primary);
    padding: 10px;
    font-size: 0.95rem;
}

.score-filter-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-filter-icon {
    color: var(--warning-color);
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

.score-filter-select {
    padding: 12px 35px 12px 15px;
    background: rgba(18, 25, 40, 0.9);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(0, 212, 255)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    min-width: 180px;
}

.score-filter-select:hover {
    border-color: var(--border-glow);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    background-color: rgba(18, 25, 40, 0.95);
}

.score-filter-select:focus {
    outline: none;
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    background-color: rgba(18, 25, 40, 0.95);
}

.score-filter-select option {
    background: rgba(18, 25, 40, 0.95);
    color: var(--text-primary);
    padding: 10px;
}

/* CAS 列表样式（核心产品 / 优势产品） */
.cas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.cas-pill {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.4);
    background: radial-gradient(circle at top left, rgba(0, 212, 255, 0.18), rgba(10, 14, 26, 0.9));
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.25);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}


/* 主要内容区域 */
.main-content {
    min-height: 600px;
}

/* 卡片网格 */
.cards-grid {
    display: grid;
    /* 桌面端：每行只展示一个企业卡片，宽度占满原来两列区域 */
    grid-template-columns: 1fr;
    gap: 35px;
    animation: fadeIn 1s ease-out 0.6s both;
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    width: 100%;
    background: rgba(18, 25, 40, 0.6);
    border: 2px dashed rgba(0, 212, 255, 0.35);
    border-radius: 20px;
    padding: 60px 30px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    color: var(--primary-color);
    opacity: 0.9;
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* 公司卡片样式 */
.company-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
    min-height: 550px;
    display: flex;
    flex-direction: column;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.company-card:hover::before {
    transform: scaleX(1);
}

.company-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-glow), var(--shadow-card);
    border-color: var(--border-glow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    line-height: 1.3;
    flex: 1;
}

.company-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.company-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
    transform: scale(1.02);
}

.company-no-link {
    cursor: default;
    opacity: 0.8;
}

.card-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.company-card:hover .card-icon {
    transform: rotate(15deg) scale(1.1);
    color: var(--primary-color);
}

/* 公司信息样式 */
.company-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 80px;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
    flex: 1;
}

.info-value.zero-count {
    color: var(--warning-color);
    font-style: italic;
}

/* 分子卡片水平滚动区域 */
.molecule-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 12px 30px; /* 与左侧图标/标签错开一点 */
}

.molecule-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 4px;
    scroll-behavior: smooth;
}

.molecule-list::-webkit-scrollbar {
    height: 6px;
}

.molecule-list::-webkit-scrollbar-track {
    background: rgba(10, 14, 26, 0.6);
    border-radius: 3px;
}

.molecule-list::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.4);
    border-radius: 3px;
}

.molecule-card {
    flex: 0 0 260px;
    background: radial-gradient(circle at top, rgba(0, 212, 255, 0.12), rgba(10, 14, 26, 0.95));
    border-radius: 14px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.molecule-card-highlight {
    border: 2px solid var(--warning-color);
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.25), 0 10px 25px rgba(0, 0, 0, 0.55);
}

.molecule-image-wrapper {
    background: rgba(4, 8, 16, 0.9);
    border-radius: 10px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    position: relative;
    cursor: pointer;
}

.molecule-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
}

.molecule-noimage {
    color: var(--text-muted);
    font-size: 0.85rem;
    user-select: none;
}

/* 右键菜单样式 */
.molecule-context-menu {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(18, 25, 40, 0.98);
    border: 1px solid rgba(0, 212, 255, 0.5);
    border-radius: 8px;
    padding: 6px 0;
    min-width: 140px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    visibility: hidden;
    backdrop-filter: blur(10px);
    animation: contextMenuFadeIn 0.2s ease-out;
}

.molecule-context-menu.show {
    display: block;
    visibility: visible;
}

@keyframes contextMenuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.context-menu-item {
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.context-menu-item:hover {
    background: rgba(0, 212, 255, 0.15);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.context-menu-item i {
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.context-menu-item span {
    flex: 1;
}

.molecule-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.molecule-cas {
    font-weight: 600;
    color: var(--primary-color);
    font-family: monospace;
}

.molecule-smiles {
    max-height: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.molecule-metrics {
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.metric-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.metric-row span:first-child {
    color: var(--text-secondary);
}

.metric-value {
    color: var(--accent-color);
    font-weight: 600;
}

.metric-rank {
    color: var(--error-color);
    font-weight: 600;
    margin-left: auto;
}

.mol-nav {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(10, 14, 26, 0.85);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mol-nav:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    transform: translateY(-1px);
}

/* 网站链接样式 */
.website-link {
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    word-break: break-all;
    font-size: 0.85rem;
}

.website-link:hover {
    color: var(--accent-color) !important;
    border-bottom-color: var(--accent-color);
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.4);
    transform: translateX(2px);
}

.website-unavailable {
    color: var(--text-muted) !important;
    opacity: 0.7;
    font-style: italic;
    font-size: 0.85rem;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}


.card-index {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: 'Orbitron', monospace;
}

/* 公司图片展示样式 */
.company-image-section {
    margin-bottom: 25px;
    border-radius: 15px;
    overflow: hidden;
    background: var(--background-darker);
    border: 1px solid var(--border-color);
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.company-image-section:hover {
    border-color: var(--border-glow);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.company-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.company-image:hover {
    transform: scale(1.02);
}

.company-image {
    cursor: pointer;
}

/* 点击提示 */
.image-click-hint {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 212, 255, 0.8);
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.company-image-section:hover .image-click-hint {
    opacity: 1;
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.no-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.no-image-placeholder span {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 星级评分样式 */
.rating-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.rating-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 80px;
}

.rating-label i {
    color: var(--accent-color);
}

.star-rating {
    display: flex;
    gap: 5px;
    cursor: pointer;
}

.star {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.star:hover,
.star.hover {
    color: #ffd700;
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.star.active {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.score-display {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
    background: rgba(0, 212, 255, 0.1);
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

/* 卡片内容布局调整 */
.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.company-info {
    flex: 1;
}

/* 分页导航样式 */
.pagination-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.pagination-jump {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 16px;
    background: rgba(18, 25, 40, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.pagination-jump input {
    width: 110px;
    padding: 10px 14px;
    background: rgba(18, 25, 40, 0.9);
    border: 2px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: 0 0 0 rgba(0, 212, 255, 0);
}

.pagination-jump input::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.pagination-jump input:hover {
    border-color: var(--border-glow);
}

.pagination-jump input:focus {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    background: rgba(18, 25, 40, 0.95);
}

.pagination-jump input::-webkit-outer-spin-button,
.pagination-jump input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pagination-jump input[type=number] {
    -moz-appearance: textfield;
}

.pagination-jump .search-btn {
    padding: 10px 16px;
    min-width: auto;
    font-size: 0.95rem;
}

.pagination-jump span {
    color: var(--text-secondary);
    font-weight: 600;
}

.pagination-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: slideInUp 1s ease-out 0.8s both;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(18, 25, 40, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.page-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

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

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.page-number:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    border-color: var(--border-color);
}

.page-number.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    border-color: var(--primary-color);
}

.page-dots {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0 5px;
}

.pagination-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

/* 动画定义 */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 响应式设计 */
@media (max-width: 1400px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .cards-grid {
        /* 1400px 以下依然保持单列显示 */
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 1200px) {
    .cards-grid {
        /* 1200px 以下继续单列显示，稍微减小间距 */
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .header-content .logo {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .search-premium-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        align-items: stretch;
    }
    
    .premium-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
        flex-direction: row;
        justify-content: center;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .search-box input {
        padding: 12px 40px 12px 35px;
        font-size: 0.9rem;
    }
    
    .search-icon {
        left: 12px;
        font-size: 1rem;
    }
    
    .search-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: 80px;
    }
    
    .star-filter-container {
        width: 100%;
        justify-content: center;
    }
    
    .star-filter-select {
        width: 100%;
        min-width: auto;
        max-width: 250px;
        padding: 8px 30px 8px 12px;
        font-size: 0.85rem;
    }
    
    .score-filter-container {
        width: 100%;
        justify-content: center;
    }
    
    .score-filter-select {
        width: 100%;
        max-width: 300px;
        padding: 12px 35px 12px 15px;
        font-size: 0.9rem;
    }
    
    .sort-filter-container {
        width: 100%;
        justify-content: center;
    }
    
    .sort-filter-select {
        width: 100%;
        min-width: auto;
        max-width: 250px;
        padding: 8px 30px 8px 12px;
        font-size: 0.85rem;
    }
    
    
    /* 移动端卡片调整 */
    .company-card {
        min-height: 450px;
        padding: 25px;
    }
    
    .company-image-section {
        height: 200px;
        margin-bottom: 20px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 移动端模态框调整 */
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 15px;
        max-height: 75vh;
    }
    
    .rating-section {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
    }
    
    .star-rating {
        justify-content: center;
    }
    
    .star {
        font-size: 1.4rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        padding: 15px;
        gap: 8px;
    }
    
    .page-numbers {
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .page-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .company-card {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    /* 移动端图片预览浮窗调整 */
    .image-tooltip {
        max-width: 280px;
        min-width: 180px;
        padding: 12px;
    }
    
    .tooltip-content img {
        max-height: 150px;
    }
    
    .tooltip-text {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-darker);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-glow);
}

/* 选中文本样式 */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

/* 图片预览浮窗样式 */
.image-tooltip {
    position: fixed;
    z-index: 10000;
    background: var(--card-background);
    border: 2px solid var(--border-glow);
    border-radius: 15px;
    padding: 15px;
    box-shadow: var(--shadow-glow), var(--shadow-card);
    backdrop-filter: blur(15px);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
    max-width: 350px;
    min-width: 200px;
}

.image-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--border-glow);
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.tooltip-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tooltip-content img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: var(--background-darker);
}

.tooltip-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
    padding: 5px 10px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.tooltip-text.error {
    color: var(--error-color);
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.tooltip-text.loading {
    color: var(--warning-color);
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

/* 卡片图标悬停增强效果 */
.card-icon {
    cursor: pointer;
    position: relative;
}

.card-icon:hover {
    transform: rotate(15deg) scale(1.2);
}

.card-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 6px var(--accent-color);
}

.card-icon:hover::after {
    opacity: 1;
}

/* 登录页面样式 */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: var(--card-background);
    border: 2px solid var(--border-glow);
    border-radius: 25px;
    padding: 40px;
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-glow), var(--shadow-card);
    animation: slideInUp 1s ease-out;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    animation: pulse 2s ease-in-out infinite;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.login-logo i {
    font-size: 48px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s ease-in-out infinite;
}

.login-logo h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    margin: 0;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    position: relative;
    transition: all 0.3s ease;
}

.form-group.focused {
    transform: translateY(-2px);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.form-group.focused label {
    color: var(--primary-color);
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(18, 25, 40, 0.8);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.form-group input:focus {
    outline: none;
    border-color: var(--border-glow);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    background: rgba(18, 25, 40, 0.95);
}

.form-group input::placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.login-btn {
    padding: 15px 30px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.login-btn:active {
    transform: translateY(-1px);
}

.flash-messages {
    margin: 20px 0;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    animation: slideInDown 0.5s ease-out;
}

.flash-success {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: var(--success-color);
}

.flash-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error-color);
}

.flash-info {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--primary-color);
}

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* 登出按钮样式 */
.logout-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.welcome-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.logout-btn:active {
    transform: translateY(0);
}

/* 移动端登出按钮调整 */
@media (max-width: 768px) {
    .logout-section {
        flex-direction: column;
        gap: 10px;
    }
}

/* Toast 提示消息样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10001;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background: rgba(74, 222, 128, 0.9);
    border: 1px solid rgba(74, 222, 128, 0.5);
    color: white;
}

.toast-error {
    background: rgba(239, 68, 68, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: white;
}

.toast-info {
    background: rgba(0, 212, 255, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.5);
    color: white;
}

/* 图片查看模态框样式 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--card-background);
    border: 2px solid var(--border-glow);
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-glow), var(--shadow-card);
    backdrop-filter: blur(15px);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.image-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 212, 255, 0.05);
}

.modal-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.modal-close:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 430px;
    max-height: 70vh;
    overflow: auto;
}

.modal-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
