/* ============================================
   JUSTICE 法韵主题 v1.0
   法律行业专属 · 庄严大方严谨
   ============================================ */

:root {
    /* 主色调 - 深邃藏蓝 */
    --primary-dark: #0a1628;
    --primary-base: #0d1f3c;
    --primary-light: #1a3a5c;
    --primary-accent: #2a4a6c;
    
    /* 金色点缀 - 权威与尊贵 */
    --gold-dark: #9a7b4f;
    --gold-base: #c9a961;
    --gold-light: #d4b87a;
    --gold-bright: #e6cc8a;
    
    /* 中性色 */
    --cream: #faf8f5;
    --ivory: #f5f2ed;
    --warm-gray: #e8e4df;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #7a7a7a;
    
    /* 功能色 */
    --success: #2d6a4f;
    --warning: #b8860b;
    --error: #8b2500;
    
    /* 字体 */
    --font-serif: 'Noto Serif SC', 'Songti SC', Georgia, serif;
    --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 4px 20px rgba(10, 22, 40, 0.12);
    --shadow-lg: 0 8px 40px rgba(10, 22, 40, 0.16);
    --shadow-gold: 0 4px 20px rgba(201, 169, 97, 0.2);
    
    /* 边框 */
    --border-light: rgba(201, 169, 97, 0.2);
    --border-medium: rgba(201, 169, 97, 0.4);
    
    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   基础重置
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--warm-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-base), var(--gold-dark));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

/* 文字选择 */
::selection {
    background: var(--gold-base);
    color: var(--primary-dark);
}

/* ============================================
   页面加载动画
   ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-base) 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-icon {
    margin-bottom: 30px;
}

.scales-icon {
    width: 100px;
    height: 100px;
    color: var(--gold-base);
    animation: scalesBalance 2s ease-in-out infinite;
}

.scales-beam {
    transform-origin: center;
    animation: beamTilt 2s ease-in-out infinite;
}

@keyframes scalesBalance {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(201, 169, 97, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(201, 169, 97, 0.8));
    }
}

@keyframes beamTilt {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

.loader-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.loader-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 12px;
    color: var(--gold-base);
    text-transform: uppercase;
}

.loader-subtitle {
    font-family: var(--font-serif);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 8px;
}

.loader-progress {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-base), var(--gold-light));
    transition: width 0.3s ease;
}

/* ============================================
   背景装饰
   ============================================ */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 50px,
            var(--primary-dark) 50px,
            var(--primary-dark) 51px
        );
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 169, 97, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(10, 22, 40, 0.08) 0%, transparent 50%);
}

/* ============================================
   顶部栏
   ============================================ */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-base) 100%);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.bar-inner {
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.bar-left {
    display: flex;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.brand-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-base), var(--gold-dark));
    border-radius: 4px;
    color: var(--primary-dark);
    font-size: 20px;
    box-shadow: var(--shadow-gold);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 2px;
}

.brand-slogan {
    font-size: 11px;
    color: var(--gold-light);
    letter-spacing: 1px;
    margin-top: 2px;
}

.bar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold-base);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--gold-base);
}

.nav-link.active::after {
    width: 60%;
}

.nav-link i {
    font-size: 12px;
}

.bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.time-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.time-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--gold-base);
    letter-spacing: 2px;
}

.time-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.bar-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.bar-btn:hover {
    background: var(--gold-base);
    border-color: var(--gold-base);
    color: var(--primary-dark);
}

/* ============================================
   主视觉区域
   ============================================ */
.hero-section {
    position: relative;
    padding: 140px 30px 60px;
    background: linear-gradient(180deg, var(--primary-base) 0%, var(--primary-light) 50%, var(--cream) 100%);
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-base), var(--gold-dark));
    border-radius: 50%;
    font-size: 32px;
    color: var(--primary-dark);
    box-shadow: 
        0 0 0 4px rgba(201, 169, 97, 0.3),
        0 0 0 8px rgba(201, 169, 97, 0.1),
        var(--shadow-gold);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 
            0 0 0 4px rgba(201, 169, 97, 0.3),
            0 0 0 8px rgba(201, 169, 97, 0.1),
            var(--shadow-gold);
    }
    50% {
        box-shadow: 
            0 0 0 8px rgba(201, 169, 97, 0.2),
            0 0 0 16px rgba(201, 169, 97, 0.05),
            var(--shadow-gold);
    }
}

.hero-title {
    margin-bottom: 16px;
}

.title-cn {
    display: block;
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 8px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* 装饰柱子 */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.pillar {
    position: absolute;
    bottom: 0;
    width: 60px;
    height: 70%;
    background: linear-gradient(
        180deg,
        rgba(201, 169, 97, 0.15) 0%,
        rgba(201, 169, 97, 0.05) 100%
    );
    border-top: 4px solid rgba(201, 169, 97, 0.3);
}

.pillar::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -10px;
    right: -10px;
    height: 20px;
    background: rgba(201, 169, 97, 0.2);
    border-radius: 4px 4px 0 0;
}

.pillar-left {
    left: 5%;
}

.pillar-right {
    right: 5%;
}

/* ============================================
   搜索区域
   ============================================ */
.search-wrapper {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
}

.search-engines {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.engine-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.engine-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.engine-btn.active {
    background: var(--gold-base);
    border-color: var(--gold-base);
    color: var(--primary-dark);
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition-normal);
}

.search-box:focus-within {
    border-color: var(--gold-base);
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(201, 169, 97, 0.15);
}

.search-icon {
    padding: 0 20px;
    color: var(--gold-base);
    font-size: 18px;
}

.search-input {
    flex: 1;
    height: 56px;
    padding: 0;
    border: none;
    font-size: 16px;
    color: var(--text-primary);
    background: transparent;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    height: 56px;
    padding: 0 28px;
    background: linear-gradient(135deg, var(--gold-base), var(--gold-dark));
    border: none;
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-base));
}

/* 搜索结果 */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 200;
}

.search-results.active {
    display: block;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--warm-gray);
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.result-item:hover {
    background: var(--ivory);
}

.result-item:last-child {
    border-bottom: none;
}

.result-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ivory);
    border-radius: 6px;
    flex-shrink: 0;
}

.result-icon img {
    width: 24px;
    height: 24px;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-url {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.search-highlight {
    background: var(--gold-bright);
    color: var(--primary-dark);
    padding: 1px 4px;
    border-radius: 2px;
}

/* ============================================
   分类标签栏
   ============================================ */
.category-bar {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--warm-gray);
    box-shadow: var(--shadow-sm);
}

.category-inner {
    display: flex;
    gap: 8px;
    padding: 14px 30px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 1600px;
    margin: 0 auto;
}

.category-inner::-webkit-scrollbar {
    display: none;
}

.category-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--warm-gray);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.category-tag i {
    font-size: 13px;
    color: var(--gold-base);
}

.category-tag:hover {
    border-color: var(--gold-base);
    color: var(--text-primary);
    background: var(--ivory);
}

.category-tag.active {
    background: linear-gradient(135deg, var(--primary-base), var(--primary-light));
    border-color: var(--primary-base);
    color: #fff;
}

.category-tag.active i {
    color: var(--gold-light);
}

/* ============================================
   主内容区
   ============================================ */
.main-content {
    position: relative;
    z-index: 10;
    padding: 40px 30px;
    min-height: calc(100vh - 400px);
}

.content-wrapper {
    max-width: 1600px;
    margin: 0 auto;
}

.link-section {
    margin-bottom: 50px;
    animation: fadeInUp 0.5s ease backwards;
}

.link-section:nth-child(1) { animation-delay: 0.1s; }
.link-section:nth-child(2) { animation-delay: 0.15s; }
.link-section:nth-child(3) { animation-delay: 0.2s; }
.link-section:nth-child(4) { animation-delay: 0.25s; }
.link-section:nth-child(5) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--warm-gray);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-base), transparent);
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-base), var(--primary-light));
    border-radius: 6px;
    color: var(--gold-base);
    font-size: 18px;
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin: 0;
}

.private-badge {
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--gold-light);
    font-size: 11px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-count {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--ivory);
    padding: 6px 14px;
    border-radius: 4px;
}

.section-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold-base), transparent);
}

/* ============================================
   链接网格
   ============================================ */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

@media (min-width: 1200px) {
    .link-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1500px) {
    .link-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 链接卡片 */
.link-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--warm-gray);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold-base), var(--gold-dark));
    border-radius: 8px 0 0 8px;
    opacity: 0;
    transition: var(--transition-normal);
}

.link-card:hover {
    border-color: var(--gold-base);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.link-card:hover::before {
    opacity: 1;
}

.card-lock {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    color: var(--gold-base);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ivory);
    border: 1px solid var(--warm-gray);
    border-radius: 8px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.link-card:hover .card-icon {
    border-color: var(--gold-base);
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), rgba(201, 169, 97, 0.05));
}

.card-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.icon-fallback {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--gold-base);
}

.card-content {
    flex: 1;
    min-width: 0;
}

.card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    transition: var(--transition-fast);
}

.link-card:hover .card-name {
    color: var(--primary-base);
}

.card-desc {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ivory);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 12px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.link-card:hover .card-arrow {
    background: var(--gold-base);
    color: var(--primary-dark);
}

/* 更多卡片 */
.more-card {
    border-style: dashed;
    background: var(--ivory);
}

.more-card:hover {
    background: #fff;
}

/* ============================================
   页脚
   ============================================ */
.site-footer {
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    padding: 50px 30px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--gold-base);
    font-family: var(--font-serif);
    font-size: 18px;
}

.footer-brand i {
    font-size: 24px;
}

.footer-divider {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-base), transparent);
    margin: 0 auto 20px;
}

.footer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.footer-text a {
    color: var(--gold-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-text a:hover {
    color: var(--gold-base);
}

.footer-quote {
    font-family: var(--font-serif);
    font-size: 15px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

.footer-quote i {
    color: var(--gold-base);
    font-size: 12px;
    margin: 0 8px;
    opacity: 0.6;
}

/* ============================================
   浮动按钮
   ============================================ */
.float-actions {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 900;
}

.float-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--warm-gray);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.float-btn:hover {
    background: linear-gradient(135deg, var(--gold-base), var(--gold-dark));
    border-color: var(--gold-base);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.top-btn {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.add-btn {
    background: linear-gradient(135deg, var(--primary-base), var(--primary-light));
    border-color: var(--primary-base);
    color: var(--gold-base);
}

.add-btn:hover {
    background: linear-gradient(135deg, var(--gold-base), var(--gold-dark));
    color: var(--primary-dark);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
    .bar-center {
        display: none;
    }
    
    .pillar {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar {
        height: 60px;
    }
    
    .bar-inner {
        padding: 0 16px;
    }
    
    .brand-slogan {
        display: none;
    }
    
    .time-display {
        display: none;
    }
    
    .hero-section {
        padding: 100px 20px 50px;
    }
    
    .hero-badge {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .title-cn {
        font-size: 28px;
        letter-spacing: 4px;
    }
    
    .hero-desc {
        font-size: 14px;
    }
    
    .search-box {
        border-radius: 6px;
    }
    
    .search-input {
        height: 48px;
        font-size: 15px;
    }
    
    .search-btn {
        height: 48px;
        padding: 0 20px;
        font-size: 14px;
    }
    
    .search-icon {
        padding: 0 14px;
        font-size: 16px;
    }
    
    .category-bar {
        top: 60px;
    }
    
    .category-inner {
        padding: 12px 16px;
    }
    
    .category-tag {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .main-content {
        padding: 30px 16px;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .link-card {
        padding: 14px 16px;
    }
    
    .card-icon {
        width: 42px;
        height: 42px;
    }
    
    .card-icon img {
        width: 24px;
        height: 24px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .section-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .float-actions {
        right: 16px;
        bottom: 16px;
    }
    
    .float-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .site-footer {
        padding: 40px 20px;
    }
    
    .footer-quote {
        font-size: 13px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 16px;
    }
    
    .title-cn {
        font-size: 24px;
    }
    
    .engine-btn span {
        display: none;
    }
    
    .engine-btn {
        padding: 8px 12px;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   动画效果
   ============================================ */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 链接卡片加载骨架屏效果 */
.link-card.loading {
    background: linear-gradient(
        90deg,
        var(--ivory) 25%,
        var(--cream) 50%,
        var(--ivory) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ============================================
   打印样式
   ============================================ */
@media print {
    .page-loader,
    .float-actions,
    .search-wrapper,
    .category-bar {
        display: none !important;
    }
    
    .top-bar {
        position: static;
        box-shadow: none;
    }
    
    .hero-section {
        padding: 20px;
        background: none;
    }
    
    .link-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

