/* ========================================
   汕职院AI设计智库 - 样式表
   ======================================== */

/* CSS变量 */
:root {
    /* 主色调 - 深邃科技感 */
    --primary-hue: 250;
    --primary: hsl(var(--primary-hue), 91%, 65%);
    --primary-light: hsl(var(--primary-hue), 91%, 75%);
    --primary-dark: hsl(var(--primary-hue), 91%, 45%);
    
    /* 强调色 */
    --accent: #f472b6;
    --accent-light: #f9a8d4;
    --accent-dark: #db2777;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    
    /* 背景色 */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: rgba(40, 40, 55, 0.85);
    --bg-card-hover: rgba(55, 55, 75, 0.95);
    
    /* 文字颜色 */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* 边框 */
    --border-color: rgba(148, 163, 184, 0.1);
    --border-hover: rgba(148, 163, 184, 0.2);
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    /* 动画 */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* 间距 */
    --header-height: 72px;
}

/* 亮色主题 */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 1);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.15);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
}

/* 基础重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 背景动画 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    top: 50%;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.95); }
    75% { transform: translate(40px, 40px) scale(1.05); }
}

[data-theme="light"] .gradient-orb {
    opacity: 0.3;
}

/* ========================================
   头部导航
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(45, 45, 60, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-base);
}

[data-theme="light"] .header {
    background: rgba(248, 250, 252, 0.85);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img,
.logo-icon svg {
    width: 40px;
    height: 40px;
    display: block;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.8px;
    line-height: 1.2;
}

.logo-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 9.4px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-top: 2px;
}

/* 导航 */
.nav {
    display: flex;
    gap: 8px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.nav-link.active {
    color: #a78bfa;
    background: rgba(99, 102, 241, 0.15);
}

/* 头部操作按钮 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn, .theme-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-btn:hover, .theme-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(99, 102, 241, 0.1);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ========================================
   搜索弹窗
   ======================================== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    width: 100%;
    max-width: 640px;
    margin: 0 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: var(--transition-base);
}

[data-theme="light"] .search-modal-content {
    background: var(--bg-secondary);
    border: none;
}

.search-modal.active .search-modal-content {
    transform: translateY(0) scale(1);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.search-input-wrapper svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 18px;
    color: var(--text-primary);
    font-family: inherit;
}

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

.search-input-wrapper kbd {
    padding: 4px 8px;
    font-size: 12px;
    font-family: inherit;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
    padding: 0;
}

.search-result-info h4 {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
    text-decoration: none;
}

.search-result-info h4 mark {
    background: transparent;
    color: #a78bfa;
    text-decoration: none;
    font-size: inherit;
    font-weight: inherit;
}

.search-result-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.search-result-info p mark {
    background: transparent;
    color: #a78bfa;
    text-decoration: none;
}

.search-no-result {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
}

/* ========================================
   移动端侧边栏
   ======================================== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: var(--bg-secondary);
    z-index: 2001;
    transform: translateX(-100%);
    transition: var(--transition-base);
    overflow-y: auto;
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
}

.close-sidebar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.close-sidebar:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.mobile-nav {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.mobile-categories {
    padding: 16px;
}

.mobile-category-item {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.mobile-category-item:hover, .mobile-category-item.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.08);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   主内容区
   ======================================== */
.main {
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* Hero区域 */
.hero {
    padding: 40px 24px 30px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 12px;
}

.title-line {
    display: inline;
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
}

/* ========================================
   分类导航
   ======================================== */
.category-nav {
    position: sticky;
    top: var(--header-height);
    background: rgba(45, 45, 60, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 0 24px;
}

[data-theme="light"] .category-nav {
    background: rgba(248, 250, 252, 0.9);
}

.category-nav-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    padding: 16px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.category-tag {
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.category-tag:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.category-tag.active {
    color: white;
    background: var(--gradient-primary);
    border: none;
    box-shadow: none;
}

.category-tag .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    margin-left: 8px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 11px;
}

.category-tag.active .count {
    background: rgba(255, 255, 255, 0.25);
}

/* ========================================
   工具卡片网格
   ======================================== */
.tools-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 分类标题 */
.category-section {
    grid-column: 1 / -1;
    margin-top: 40px;
    margin-bottom: 8px;
}

.category-section:first-child {
    margin-top: 0;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.category-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.category-title .tool-count {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: auto;
}

/* 工具卡片 */
.tool-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition-base);
    overflow: visible;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.tool-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
    border-radius: var(--radius-sm);
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    z-index: 1000;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.tool-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    row-gap: 12px;
}

.tool-name .external-icon {
    opacity: 0;
    transition: var(--transition-fast);
    color: var(--primary);
}

.tool-card:hover .tool-name .external-icon {
    opacity: 1;
}

.tool-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
}

/* 工具提示框 */
.tool-tooltip {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 14px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    width: 260px;
    z-index: 9999;
    visibility: hidden;
    pointer-events: none;
    white-space: normal;
}

.tool-tooltip::before {
    content: '';
    position: absolute;
    right: 24px;
    bottom: 100%;
    border: 7px solid transparent;
    border-bottom-color: var(--border-color);
}

.tool-tooltip::after {
    content: '';
    position: absolute;
    right: 25px;
    bottom: 100%;
    border: 6px solid transparent;
    border-bottom-color: var(--bg-card);
}

.tool-card:hover .tool-tooltip {
    visibility: visible;
    pointer-events: auto;
}


/* ========================================
   页面标题区域（子页面）
   ======================================== */
.page-hero {
    padding: 60px 24px 40px;
    text-align: center;
    position: relative;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.page-hero-title .title-icon {
    font-size: clamp(32px, 4.5vw, 48px);
}

.page-hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ========================================
   案例研究区域
   ======================================== */
.cases-section {
    padding: 80px 0 60px;
    background: var(--bg-secondary);
    position: relative;
}

.cases-section.cases-page {
    padding: 20px 0 80px;
    background: transparent;
}

.cases-section.cases-page::before {
    display: none;
}

.cases-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.cases-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.cases-header {
    text-align: center;
    margin-bottom: 48px;
}

.cases-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.cases-title .title-icon {
    font-size: 36px;
}

.cases-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* 案例卡片 */
.case-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.case-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
}

.case-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.case-card:hover::before {
    opacity: 1;
}

.case-cover {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    overflow: hidden;
    background: var(--bg-tertiary);
}

.case-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-cover img {
    transform: scale(1.05);
}

.case-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: var(--transition-base);
}

.case-card:hover .case-cover-overlay {
    opacity: 1;
}

.case-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-fast);
}

.case-card:hover .case-title {
    color: var(--primary);
}

.case-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 16px;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-tag {
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    transition: var(--transition-fast);
}

.case-card:hover .case-tag {
    background: rgba(99, 102, 241, 0.2);
}

.case-link-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    color: white;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition-base);
}

.case-card:hover .case-link-icon {
    opacity: 1;
    transform: translateY(0);
}

/* 案例卡片动画 */
.case-card {
    animation: fadeInUp 0.5s ease backwards;
}

.cases-grid .case-card:nth-child(1) { animation-delay: 0.1s; }
.cases-grid .case-card:nth-child(2) { animation-delay: 0.15s; }
.cases-grid .case-card:nth-child(3) { animation-delay: 0.2s; }
.cases-grid .case-card:nth-child(4) { animation-delay: 0.25s; }
.cases-grid .case-card:nth-child(5) { animation-delay: 0.3s; }
.cases-grid .case-card:nth-child(6) { animation-delay: 0.35s; }
.cases-grid .case-card:nth-child(7) { animation-delay: 0.4s; }
.cases-grid .case-card:nth-child(8) { animation-delay: 0.45s; }

/* ========================================
   页脚
   ======================================== */
.footer {
    background: rgba(45, 45, 60, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 30px 24px 30px;
}

[data-theme="light"] .footer {
    background: rgba(248, 250, 252, 0.85);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-left {
    flex: 1;
}

.footer-right {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 10px;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.footer-logo img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 64px;
}

.footer-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.footer-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.footer-links-title {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copyright {
    text-align: left;
}

.footer-copyright p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-qrcodes {
    display: flex;
    gap: 28px;
}

.qrcode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.qrcode-item img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    background: white;
    padding: 3px;
}

.qrcode-item span {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* ========================================
   回到顶部
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    z-index: 99;
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .footer-left {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .footer-qrcodes {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }
    
    .nav, .header-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 60px 20px 40px;
    }
    
    .category-nav {
        padding: 0 16px;
    }
    
    .category-nav-inner {
        padding: 12px 0;
    }
    
    .category-tag {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .tools-container {
        padding: 24px 16px 60px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .category-title {
        font-size: 18px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    
    /* 案例研究响应式 */
    .cases-section {
        padding: 60px 0 40px;
    }
    
    .cases-container {
        padding: 0 16px;
    }
    
    .cases-header {
        margin-bottom: 32px;
    }
    
    .cases-title {
        font-size: 24px;
    }
    
    .cases-title .title-icon {
        font-size: 28px;
    }
    
    .cases-subtitle {
        font-size: 15px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .case-content {
        padding: 16px;
    }
    
    .case-title {
        font-size: 16px;
    }
    
    .case-desc {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .logo-subtitle {
        display: none;
    }
    
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    animation: fadeInUp 0.4s ease backwards;
}

.tools-grid .tool-card:nth-child(1) { animation-delay: 0.05s; }
.tools-grid .tool-card:nth-child(2) { animation-delay: 0.1s; }
.tools-grid .tool-card:nth-child(3) { animation-delay: 0.15s; }
.tools-grid .tool-card:nth-child(4) { animation-delay: 0.2s; }
.tools-grid .tool-card:nth-child(5) { animation-delay: 0.25s; }
.tools-grid .tool-card:nth-child(6) { animation-delay: 0.3s; }
.tools-grid .tool-card:nth-child(7) { animation-delay: 0.35s; }
.tools-grid .tool-card:nth-child(8) { animation-delay: 0.4s; }

/* 选中高亮 */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

/* ========================================
   高校工作室区域
   ======================================== */
.studios-section {
    padding: 20px 0 80px;
    background: transparent;
}

.studios-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.studios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 28px;
}

/* 工作室卡片 */
.studio-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.5s ease backwards;
}

.studio-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
}

.studio-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.studio-card:hover::before {
    opacity: 1;
}

.studio-cover {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    overflow: hidden;
    background: var(--bg-tertiary);
}

.studio-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.studio-card:hover .studio-cover img {
    transform: scale(1.05);
}

.studio-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: var(--transition-base);
}

.studio-card:hover .studio-cover-overlay {
    opacity: 1;
}

.studio-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.studio-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-fast);
}

.studio-card:hover .studio-title {
    color: var(--primary);
}

.studio-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 18px;
}

.studio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.studio-tag {
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    transition: var(--transition-fast);
}

.studio-card:hover .studio-tag {
    background: rgba(99, 102, 241, 0.2);
}

.studio-link-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    color: white;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition-base);
}

.studio-card:hover .studio-link-icon {
    opacity: 1;
    transform: translateY(0);
}

/* 工作室卡片动画 */
.studios-grid .studio-card:nth-child(1) { animation-delay: 0.1s; }
.studios-grid .studio-card:nth-child(2) { animation-delay: 0.18s; }
.studios-grid .studio-card:nth-child(3) { animation-delay: 0.26s; }
.studios-grid .studio-card:nth-child(4) { animation-delay: 0.34s; }
.studios-grid .studio-card:nth-child(5) { animation-delay: 0.42s; }
.studios-grid .studio-card:nth-child(6) { animation-delay: 0.5s; }

/* 工作室响应式 */
@media (max-width: 768px) {
    .studios-section {
        padding: 20px 0 60px;
    }
    
    .studios-container {
        padding: 0 16px;
    }
    
    .studios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .studio-content {
        padding: 18px;
    }
    
    .studio-title {
        font-size: 16px;
    }
    
    .studio-desc {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
}

/* ========================================
   About Me 页面（简洁版）
   ======================================== */

.about-page-section {
    padding: 40px 0 80px;
}

.about-page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
}

/* 头部 */
/* About页面Hero区域 */
.about-page-hero {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    background: rgba(90, 90, 110, 0.4);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    margin-bottom: 48px;
}

.about-hero-logo {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
}

.about-hero-logo img {
    height: 80px;
    width: auto;
}

.about-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    height: 80px;
    padding-top: 0;
    gap: 0;
}

.about-hero-title {
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1;
    letter-spacing: 0.02em;
}

.about-hero-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin: 2px 0 0 0;
    line-height: 1.1;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.about-hero-slogan {
    font-size: 11px;
    color: #a78bfa;
    font-weight: 500;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 0.24em;
}

/* 白天模式下的Hero区域 */
[data-theme="light"] .about-page-hero {
    background: rgba(90, 90, 110, 0.1);
}

[data-theme="light"] .about-hero-title {
    color: #1a1a2e;
}

[data-theme="light"] .about-hero-subtitle {
    color: rgba(26, 26, 46, 0.7);
    border-bottom-color: rgba(26, 26, 46, 0.2);
}

[data-theme="light"] .about-hero-slogan {
    color: #7c3aed;
}

/* 正文内容 */
.about-page-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.about-page-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 24px 0 14px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.about-page-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.about-page-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 16px 0 8px;
}

.about-page-content p {
    margin-bottom: 16px;
    text-align: justify;
    word-break: break-all;
}

.about-page-content strong {
    color: var(--text-primary);
}

.about-page-content ul,
.about-page-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.about-page-content li {
    margin-bottom: 10px;
    line-height: 1.8;
    text-align: justify;
    word-break: break-all;
}

/* 页脚 */
.about-page-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.about-page-footer p {
    margin-bottom: 8px;
}

.about-page-footer em {
    font-style: normal;
    color: var(--text-muted);
}

/* About响应式 */
@media (max-width: 1200px) {
    .about-page-container {
        padding: 0 32px;
    }
}

@media (max-width: 768px) {
    .about-page-section {
        padding: 30px 0 60px;
    }
    
    .about-page-container {
        padding: 0 20px;
    }
    
    .about-page-logo {
        width: 60px;
        height: 60px;
    }
    
    .about-page-hero {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 28px 20px;
        gap: 16px;
    }
    
    .about-hero-logo img {
        height: 80px;
        width: auto;
    }
    
    .about-hero-text {
        padding-top: 0;
        height: auto;
        gap: 6px;
        justify-content: flex-start;
        text-align: left;
        align-items: flex-start;
    }
    
    .about-hero-title {
        font-size: 22px;
    }
    
    .about-hero-subtitle {
        font-size: 11px;
        letter-spacing: 1.5px;
    }
    
    .about-hero-slogan {
        font-size: 13px;
    }
    
    .about-page-content h2 {
        font-size: 18px;
        margin: 36px 0 16px;
    }
    
    .about-page-content h3 {
        font-size: 15px;
    }
    
    .about-page-content {
        font-size: 14px;
    }
}

