/* 全局样式 */
:root {
    /* 颜色变量 */
    --primary: #0A2463;
    --primary-light: #1E3A8A;
    --primary-dark: #051845;
    --secondary: #D4AF37;
    --secondary-light: #F2D272;
    --secondary-dark: #B39020;
    --text-white: #FFFFFF;
    --text-gray: #CCCCCC;
    --text-gray-dark: #666666;
    --bg-light: #F5F5F5;
    --bg-dark: #333333;

    /* 字体变量 */
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* 阴影变量 */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-card-hover: 0 10px 30px rgba(0, 0, 0, 0.2);

    /* 过渡变量 */
    --transition-default: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-white);
    background-color: var(--primary-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* 工具类 */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bg-gradient-gold {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 50%, var(--secondary) 100%);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.golden-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    width: 80%;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: var(--primary-dark);
    background-opacity: 0.9;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--secondary);
    border-opacity: 0.3;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 2.5rem;
    width: 2.5rem;
    margin-right: 0.75rem;
}

.navbar-logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
}

.navbar-menu {
    display: none;
}

.navbar-menu ul {
    display: flex;
    space-x: 1.5rem;
}

.navbar-menu a {
    color: var(--text-white);
    transition: var(--transition-default);
}

.navbar-menu a:hover {
    color: var(--secondary);
}

.navbar-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    padding: 1rem;
    display: none;
}

.navbar-mobile.active {
    display: block;
}

.navbar-mobile ul {
    display: flex;
    flex-direction: column;
    space-y: 1rem;
}

@media (min-width: 768px) {
    .navbar-menu {
        display: flex;
    }

    .navbar-toggle {
        display: none;
    }
}

/* 英雄区域样式 */
.hero-section {
    position: relative;
    background-image: url('https://p3-flow-imagex-sign.byteimg.com/tos-cn-i-a9rns2rl98/rc/pc/super_tool/46c0a794968344e0acc87514f8de294f~tplv-a9rns2rl98-image.image?rcl=202511051419190CDC84649C2CBC9DB0B7&rk3s=8e244e95&rrcfp=f06b921b&x-expires=1764915578&x-signature=3sb84qCBH0XJa5iDmkvoHxsdbuQ%3D');
    background-size: cover;
    background-position: center;
    padding-top: 12rem;
    padding-bottom: 6rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 36, 99, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-gray);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: var(--text-gray);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* 搜索框样式 */
.search-container {
    position: relative;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--text-white);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 1.25rem;
    cursor: pointer;
}

/* 企业列表区域样式 */
.enterprises-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* 筛选按钮样式 */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-default);
}

.filter-btn.active {
    background-color: var(--secondary);
    color: var(--primary);
}

.filter-btn:not(.active) {
    background-color: var(--primary-light);
    color: var(--text-white);
}

.filter-btn:not(.active):hover {
    background-color: var(--primary);
}

/* 企业网格样式 */
.enterprise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .enterprise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .enterprise-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .enterprise-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 企业卡片样式 */
.enterprise-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: var(--transition-default);
}

.enterprise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.5);
}

.enterprise-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.enterprise-number {
    color: var(--secondary);
    font-weight: 700;
    opacity: 0.8;
    font-size: 1.5rem;
}

.enterprise-divider {
    height: 2.5rem;
    width: 1px;
    background-color: var(--secondary);
    border-radius: 9999px;
}

.enterprise-name {
    color: var(--text-white);
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.enterprise-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.enterprise-category {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.view-details {
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    transition: var(--transition-default);
}

.view-details:hover {
    color: var(--secondary-light);
}

/* 加载动画样式 */
.loader {
    border: 4px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--secondary);
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* 无结果样式 */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem;
}

.no-results i {
    font-size: 4rem;
    color: var(--text-gray-dark);
    margin-bottom: 1rem;
}

.no-results p:first-of-type {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.no-results p:last-of-type {
    color: var(--text-gray-dark);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.pagination-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.3125rem;
    cursor: pointer;
    transition: var(--transition-default);
}

.pagination-btn.active {
    background-color: var(--secondary);
    color: var(--primary);
    font-weight: bold;
}

.pagination-btn:hover:not(.active) {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--secondary);
}

/* 页脚样式 */
.footer {
    background-color: var(--primary);
    padding-top: 3rem;
    padding-bottom: 3rem;
    text-align: center;
}

.footer-content {
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: var(--text-gray);
    transition: var(--transition-default);
}

.footer-link:hover {
    color: var(--secondary);
}

.footer-copyright {
    color: var(--text-gray-dark);
    font-size: 0.875rem;
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--secondary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-default);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-light);
}

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

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-light);
}
