/* ===== 基础样式和变量 ===== */
:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --accent-color: #007bff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --bg-light: #f8f9fa;
    --bg-dark: #212529;
    --text-light: #212529;
    --text-dark: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --border-radius: 10px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: none;
}

/* 暗色模式变量 - 现代化重构 */
[data-theme="dark"] {
    --primary-color: #4dabf7;
    --secondary-color: #868e96;
    --accent-color: #339af0;
    --light-color: #212529;
    --dark-color: #f8f9fa;
    --bg-light: #1a1a1a;
    --bg-dark: #0d1117;
    --text-light: #e9ecef;
    --text-dark: #f8f9fa;
    --card-bg: #2d3748;
    --border-color: #374151;
    --bg-light-secondary: #2d3748;

    /* Hero section 暗色模式专用变量 */
    --hero-gradient-dark: linear-gradient(135deg, #0d1117 0%, #1a1f2e 50%, #2d3748 100%);
    --hero-text-primary: #ffffff;
    --hero-text-secondary: #a0aec0;
    --hero-button-bg: #4dabf7;
    --hero-button-border: #339af0;
    --hero-button-hover: #339af0;
}

/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* 暗色模式主体背景 */
[data-theme="dark"] body {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

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

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

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

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

::-webkit-scrollbar-thumb:hover {
    /* 简化hover效果，防止抖动 */
    opacity: 0.9;
}

/* ===== 导航栏样式 - 明亮模式（清新现代风格）===== */
.navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 手机端菜单按钮样式 - 白天模式 */
.navbar-toggler {
    border: 2px solid #0056b3 !important;
    background-color: rgba(0, 86, 179, 0.1) !important;
    padding: 0.5rem 0.75rem !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230056b3' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.5em;
    height: 1.5em;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1a202c !important;
}

.navbar-nav .nav-link {
    color: #4a5568 !important;
    font-weight: 500;
    margin: 0 0.5rem;
    border-radius: 25px;
    padding: 0.5rem 1rem !important;
    position: relative;
    cursor: pointer;
}

.navbar-nav .nav-link:hover {
    color: #0056b3 !important;
    background: rgba(0, 86, 179, 0.05);
}

.navbar-nav .nav-link.active {
    background: rgba(0, 86, 179, 0.1);
    color: #0056b3 !important;
}

/* ===== Hero Section - 明亮模式（清新现代风格）===== */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    color: #2d3748;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 86, 179, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(102, 126, 234, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* 确保Hero section中的所有交互元素都可点击 */
.hero-section .d-flex,
.hero-section .social-links {
    position: relative;
    z-index: 2;
}

.hero-section .btn {
    position: relative;
    z-index: 3;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.hero-content h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a202c !important;
    text-shadow: none;
}

.hero-content h2 {
    color: #0056b3 !important;
}

.hero-content h3 {
    color: #4a5568 !important;
}

.hero-content p {
    color: #2d3748 !important;
    line-height: 1.8;
}

.hero-content .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 1;
    color: #2d3748 !important;
}

/* 明亮模式下的社交链接 */
.social-links .social-link {
    color: #0056b3;
    font-size: 1.5rem;
    background: rgba(0, 86, 179, 0.08);
    border: 2px solid rgba(0, 86, 179, 0.15);
}

.social-links .social-link:hover {
    color: #003d82;
    background: rgba(0, 86, 179, 0.12);
    border-color: rgba(0, 86, 179, 0.25);
}

/* ===== Section Styles ===== */
section {
    padding: 5rem 0;
    background-color: #ffffff;
}

/* 暗色模式下的section背景 */
[data-theme="dark"] section {
    background-color: var(--bg-dark) !important;
}

[data-theme="dark"] section.bg-light {
    background-color: var(--bg-light-secondary) !important;
}

/* 确保所有section背景都能正确切换 */
[data-theme="dark"] #about,
[data-theme="dark"] #research,
[data-theme="dark"] #publications,
[data-theme="dark"] #gallery,
[data-theme="dark"] #contact {
    background-color: var(--bg-dark) !important;
}

/* 特殊section的背景色 */
[data-theme="dark"] #research {
    background-color: var(--bg-light-secondary) !important;
}

.section-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ===== Card Styles ===== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    background: white;
}

/* Dark Mode Cards */
[data-theme="dark"] .card {
    background: var(--card-bg) !important;
    color: var(--text-dark) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .publication-card {
    background: var(--card-bg) !important;
    color: var(--text-dark) !important;
    border-left: 4px solid var(--primary-color) !important;
}

[data-theme="dark"] .card-header {
    background: var(--card-bg) !important;
    color: var(--text-dark) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .card-body {
    background: var(--card-bg) !important;
    color: var(--text-dark) !important;
}

/* ===== Button Styles ===== */
.btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    /* 防止所有按钮抖动 */
    display: inline-block;
    vertical-align: middle;
}

.btn:hover {
    /* 防止通用按钮hover抖动 */
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
    color: #ffffff !important;
    border: none;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.35);
}

.btn-outline-primary {
    border: 2px solid #0056b3;
    color: #0056b3;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #0056b3;
    color: #ffffff !important;
    border-color: #0056b3;
}

/* 暗色模式按钮 */
[data-theme="dark"] .btn-outline-primary {
    color: var(--primary-color);
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

[data-theme="dark"] .btn-outline-primary:hover {
    /* 简化hover效果，防止抖动 */
    opacity: 0.8;
}

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, #212529 0%, #000000 100%) !important;
    color: rgba(255, 255, 255, 0.8);
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* 暗色模式footer */
[data-theme="dark"] footer {
    background: var(--bg-dark) !important;
    color: var(--text-dark);
}

[data-theme="dark"] footer a {
    color: var(--text-dark);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

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

.back-to-top:hover {
    /* 无变化，防止抖动 */
}

/* ===== Search Filter Styles ===== */
.search-filter {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

[data-theme="dark"] .search-filter {
    background: var(--card-bg);
    color: var(--text-dark);
}

.filter-btn {
    margin: 0 0.5rem;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

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

.filter-btn:hover {
    /* 无变化，防止抖动 */
}

/* 暗色模式表单控件 */
[data-theme="dark"] .form-control {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-dark);
}

[data-theme="dark"] .form-control:focus {
    background-color: var(--card-bg);
    border-color: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 0 0 0.2rem rgba(77, 171, 247, 0.25);
}

/* ===== Gallery Styles ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    cursor: pointer;
}

[data-theme="dark"] .gallery-item {
    background: var(--card-bg);
}

.gallery-placeholder {
    height: 250px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

/* ===== Contact Styles ===== */
.contact-content {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

[data-theme="dark"] .contact-content {
    background: var(--card-bg);
    color: var(--text-dark);
}

.contact-item i {
    color: var(--primary-color);
}

.contact-item h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-links-large {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Social link large styles moved to line 1635 to avoid conflicts */

/* ===== Publication Card Styles ===== */
.publication-card {
    background: white;
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
    overflow: hidden;
}

/* ===== Publication Layout (Left-Right Split) ===== */
.publication-layout {
    display: flex;
    align-items: stretch;
    min-height: 320px;
}

.publication-info {
    flex: 1;
    padding: 1.25rem 1.5rem;
    min-width: 0; /* Allow flex item to shrink */
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .publication-info {
    border-right-color: var(--border-color);
}

.publication-model {
    width: 320px;
    min-width: 320px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(248, 249, 250, 0.5);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .publication-model {
    background: rgba(45, 55, 72, 0.3);
    border-left-color: var(--border-color);
}

.publication-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    line-height: 1.3;
}

.publication-authors,
.publication-venue {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.publication-abstract {
    line-height: 1.5;
    color: var(--text-light);
    font-size: 0.9rem;
}

[data-theme="dark"] .publication-abstract {
    color: var(--text-dark);
}

.publication-links {
    margin-top: 0.75rem;
}

.publication-links .btn {
    margin-right: 0.5rem;
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
    /* 防止抖动 */
    display: inline-block;
    vertical-align: middle;
}

.publication-links .btn:hover {
    /* 简化hover效果，防止抖动 */
    opacity: 0.8 !important;
    /* 防止尺寸变化 */
    padding: 0.375rem 0.75rem !important;
    font-size: 0.85rem !important;
    /* 防止边框变化 */
    border-width: 2px !important;
    /* 防止背景变化引起的抖动 */
    background-color: transparent !important;
    /* 防止transform变化 */
    transform: none !important;
}

.publication-links .btn i {
    /* 防止图标移动 */
    display: inline-block;
    vertical-align: middle;
}

.publication-links .btn:hover i {
    /* 图标hover时不变化 */
    transform: none;
}

/* 暗色模式下的publication按钮 */
[data-theme="dark"] .publication-links .btn:hover {
    /* 简化hover效果，防止抖动 */
    opacity: 0.8 !important;
    /* 防止尺寸变化 */
    padding: 0.375rem 0.75rem !important;
    font-size: 0.85rem !important;
    /* 防止边框变化 */
    border-width: 2px !important;
    /* 防止背景变化引起的抖动 */
    background-color: transparent !important;
    /* 防止transform变化 */
    transform: none !important;
}

/* 确保所有btn-sm也不会抖动 */
.btn-sm:hover {
    /* 防止小按钮抖动 */
    opacity: 0.8 !important;
    transform: none !important;
}

/* 额外保护：确保btn-outline-primary在publication中不抖动 */
.publication-links .btn-outline-primary:hover {
    opacity: 0.8 !important;
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: none !important;
    box-shadow: inset 0 0 0 2px var(--primary-color) !important;
}

/* 彻底防止PDF按钮抖动 - 最强规则 */
.publication-links a.btn.btn-sm.btn-outline-primary {
    /* 固定所有可能导致抖动的属性 */
    padding: 0.375rem 0.75rem !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 25px !important;
    margin-right: 0.5rem !important;
    display: inline-block !important;
    vertical-align: middle !important;
    text-decoration: none !important;
    /* 防止任何transform */
    transform: none !important;
    /* 固定box-shadow */
    box-shadow: inset 0 0 0 2px var(--primary-color) !important;
    /* 防止outline */
    outline: none !important;
    /* 防止布局抖动 */
    width: auto !important;
    min-width: fit-content !important;
    /* 强制使用GPU加速，防止重排 */
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    /* 防止字体抗锯齿变化 */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.publication-links a.btn.btn-sm.btn-outline-primary:hover {
    /* hover时只改变透明度 */
    opacity: 0.8 !important;
    /* 其他属性保持不变 */
    padding: 0.375rem 0.75rem !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 25px !important;
    background-color: transparent !important;
    color: var(--primary-color) !important;
    transform: none !important;
    box-shadow: inset 0 0 0 2px var(--primary-color) !important;
    outline: none !important;
    text-decoration: none !important;
    /* 防止布局抖动 */
    width: auto !important;
    min-width: fit-content !important;
    /* 强制使用GPU加速，防止重排 */
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    /* 防止字体抗锯齿变化 */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.publication-links a.btn.btn-sm.btn-outline-primary:focus {
    /* focus时也不变化 */
    opacity: 1 !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    border: 2px solid var(--primary-color) !important;
    box-shadow: inset 0 0 0 2px var(--primary-color) !important;
    outline: none !important;
}

.publication-links a.btn.btn-sm.btn-outline-primary:active {
    /* active时也不变化 */
    padding: 0.375rem 0.75rem !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    border: 2px solid var(--primary-color) !important;
    box-shadow: inset 0 0 0 2px var(--primary-color) !important;
    transform: none !important;
}

/* 确保按钮内的图标不会移动 */
.publication-links a.btn i.fas {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 0.25rem !important;
    transform: none !important;
}

.publication-links a.btn:hover i.fas {
    transform: none !important;
    margin-right: 0.25rem !important;
}

/* ===== Model Image Styles ===== */
.model-image-container {
    position: relative;
    width: 100%;
    text-align: center;
    cursor: pointer;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .model-image-container {
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.model-image {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.model-caption {
    margin-top: 0.75rem;
    padding: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .model-caption {
    border-top-color: var(--border-color);
}

.model-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    border-radius: var(--border-radius);
}

.model-overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.model-overlay span {
    font-size: 0.9rem;
    font-weight: 500;
}

.model-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--secondary-color);
    text-align: center;
    padding: 1rem;
}

.model-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.model-placeholder p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===== Lightbox Styles ===== */
.model-lightbox {
    /* 无动画 */
}

.lightbox-content {
    /* 无动画 */
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.lightbox-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.lightbox-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
}

.lightbox-close:hover {
    /* 简化hover效果，防止抖动 */
    opacity: 0.7;
}

.lightbox-body {
    padding: 1.5rem;
    text-align: center;
    max-height: 60vh;
    overflow-y: auto;
}

.lightbox-image {
    max-width: 100%;
    max-height: 50vh;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.lightbox-image:hover {
    /* 无变化 */
}

.lightbox-caption {
    margin-top: 1rem;
    font-style: italic;
    color: var(--secondary-color);
}

.lightbox-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

/* ===== Dark Mode Lightbox ===== */
[data-theme="dark"] .lightbox-content {
    background: var(--card-bg);
    color: var(--text-dark);
}

[data-theme="dark"] .lightbox-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .lightbox-footer {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .lightbox-close {
    color: var(--text-dark);
}

[data-theme="dark"] .lightbox-close:hover {
    /* 简化hover效果，防止抖动 */
    opacity: 0.7;
}

[data-theme="dark"] .lightbox-caption {
    color: #a0aec0;
}

/* ===== Lightbox Animations - Removed ===== */

/* ===== Publication Header ===== */
.publication-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

[data-theme="dark"] .publication-header {
    border-bottom-color: var(--border-color);
}

/* ===== Publication Meta ===== */
.publication-meta {
    margin-bottom: 0.75rem;
}

/* ===== Publication Keywords ===== */
.publication-keywords {
    margin-bottom: 0.75rem;
}

/* ===== Publication Abstract ===== */
.publication-abstract {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

[data-theme="dark"] .publication-abstract {
    border-top-color: var(--border-color);
}

.abstract-content {
    margin-top: 0.5rem;
}

.abstract-toggle {
    color: var(--primary-color) !important;
    font-weight: 500;
}

.abstract-toggle:hover {
    /* 简化hover效果，防止抖动 */
    opacity: 0.8;
}

/* ===== About Section Styles ===== */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content .lead {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.research-focus,
.research-interests {
    text-align: left;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .research-focus,
[data-theme="dark"] .research-interests {
    background: var(--card-bg);
    color: var(--text-dark);
}

.research-focus h4,
.research-interests h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.research-interests ul {
    list-style: none;
    padding: 0;
}

.research-interests li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .research-interests li {
    border-bottom-color: var(--border-color);
}

.research-interests li:last-child {
    border-bottom: none;
}

.research-interests li::before {
    content: "▸ ";
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== Research Description Styles ===== */
.research-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.research-content .lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.research-description {
    text-align: left;
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .research-description {
    background: var(--card-bg);
    color: var(--text-dark);
}

.research-description p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.research-description h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.research-description ul {
    margin-left: 1.5rem;
    line-height: 1.8;
}

.research-description li {
    margin-bottom: 0.5rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .publication-model {
        width: 280px;
        min-width: 280px;
    }
}

@media (max-width: 992px) {
    .publication-layout {
        flex-direction: column;
        min-height: auto;
    }

    .publication-info {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 1.25rem;
    }

    [data-theme="dark"] .publication-info {
        border-bottom-color: var(--border-color);
    }

    .publication-model {
        width: 100%;
        min-width: auto;
        padding: 1.25rem;
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    [data-theme="dark"] .publication-model {
        border-top-color: var(--border-color);
    }

    .model-image {
        max-height: 250px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    section {
        padding: 3rem 0;
    }

    .social-links-large {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-btn {
        margin: 0.25rem;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .publication-info {
        padding: 1rem;
    }

    .publication-model {
        padding: 0.875rem;
    }

    .model-image {
        max-height: 200px;
    }

    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .lightbox-body {
        padding: 1rem;
    }

    .lightbox-header {
        padding: 1rem;
    }

    .lightbox-footer {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }

    .social-links .social-link {
        font-size: 1.25rem;
        margin: 0 0.5rem;
    }

    .publication-card {
        padding: 1.5rem;
    }

    .publication-title {
        font-size: 1.1rem;
    }

    .research-focus,
    .research-interests,
    .research-description {
        padding: 1.5rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .back-to-top,
    .social-links,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        background: white !important;
        color: black !important;
    }

    .section-title {
        font-size: 18pt;
        margin-bottom: 1rem;
    }

    .publication-card,
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility - Simplified to prevent layout shift */
.btn:focus,
.nav-link:focus,
.social-link:focus,
input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-color);
}

/* ===== Utility Classes ===== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient-primary);
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-custom {
    border: 2px solid var(--primary-color);
}

.rounded-custom {
    border-radius: var(--border-radius);
}

/* 暗色模式工具类 */
[data-theme="dark"] .text-muted {
    color: #a0aec0 !important;
}

[data-theme="dark"] .bg-light {
    background-color: var(--bg-light-secondary) !important;
}

[data-theme="dark"] .text-primary {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .text-secondary {
    color: var(--secondary-color) !important;
}

/* ===== Comprehensive Dark Mode Fix ===== */

/* Body and html elements */
[data-theme="dark"] body {
    background-color: var(--bg-dark) !important;
    color: var(--text-dark) !important;
}

[data-theme="dark"] html {
    background-color: var(--bg-dark) !important;
}

/* All text elements */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-dark) !important;
}

[data-theme="dark"] p {
    color: var(--text-dark) !important;
}

[data-theme="dark"] span {
    color: var(--text-dark) !important;
}

[data-theme="dark"] div {
    color: var(--text-dark) !important;
}

/* Navbar dark mode */
[data-theme="dark"] .navbar {
    background-color: var(--card-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

/* 手机端菜单按钮样式 - 暗色模式 */
[data-theme="dark"] .navbar-toggler {
    border: 2px solid #4dabf7 !important;
    background-color: rgba(77, 171, 247, 0.15) !important;
}

[data-theme="dark"] .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(77, 171, 247, 0.25) !important;
}

[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234dabf7' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

[data-theme="dark"] .navbar-brand {
    color: var(--text-dark) !important;
}

/* Removed duplicate dark mode nav-link styles - see line 1507 */

[data-theme="dark"] .nav-link.active {
    color: var(--primary-color) !important;
}

/* All cards and containers */
[data-theme="dark"] .container {
    color: var(--text-dark) !important;
}

[data-theme="dark"] .row {
    color: var(--text-dark) !important;
}

[data-theme="dark"] .col-md-6,
[data-theme="dark"] .col-md-12,
[data-theme="dark"] .col-lg-4,
[data-theme="dark"] .col-lg-6,
[data-theme="dark"] .col-lg-8,
[data-theme="dark"] .col-lg-12 {
    color: var(--text-dark) !important;
}

/* Gallery and image containers */
[data-theme="dark"] .gallery-item {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .gallery-placeholder {
    background: var(--card-bg) !important;
    color: var(--text-dark) !important;
}

/* Contact section */
[data-theme="dark"] .contact-content {
    background: var(--card-bg) !important;
    color: var(--text-dark) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .contact-item h4 {
    color: var(--text-dark) !important;
}

/* ===== Services Section 样式 ===== */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.12) !important;
}

/* 确保所有journal-item的父容器宽度和高度一致 */
.service-card .row > [class*='col-'] {
    display: flex;
    margin-bottom: 0.75rem;
}

.journal-item {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    min-height: 80px;
    width: 100%;
    padding: 0.75rem 1rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.journal-item i {
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.journal-item span {
    display: block;
    line-height: 1.5;
    word-break: break-word;
    hyphens: auto;
    flex: 1;
}

.journal-item:hover {
    background: rgba(0, 86, 179, 0.08) !important;
    border-color: rgba(0, 86, 179, 0.2) !important;
    transform: translateX(5px);
}

/* ===== Services Section 暗黑模式 ===== */
[data-theme="dark"] #services p {
    color: var(--text-dark) !important;
}

[data-theme="dark"] .service-card {
    background: var(--card-bg) !important;
    border-left-color: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .service-card:hover {
    box-shadow: 0 6px 20px rgba(77, 171, 247, 0.2) !important;
}

[data-theme="dark"] .service-card h3 {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .journal-item {
    background: rgba(77, 171, 247, 0.08) !important;
    border-color: rgba(77, 171, 247, 0.2) !important;
}

[data-theme="dark"] .journal-item:hover {
    background: rgba(77, 171, 247, 0.12) !important;
    border-color: rgba(77, 171, 247, 0.3) !important;
}

[data-theme="dark"] .journal-item i {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .journal-item span {
    color: var(--text-dark) !important;
}

/* Removed duplicate dark mode social-link-large styles - see line 1665 */

/* Form controls */
[data-theme="dark"] .form-control {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-dark) !important;
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-muted) !important;
}

/* Buttons - Removed duplicate (see line 288) */

/* Filter buttons */
[data-theme="dark"] .filter-btn {
    background: var(--card-bg) !important;
    color: var(--text-dark) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .filter-btn.active {
    background: var(--primary-color) !important;
    color: white !important;
}

/* Publication specific elements */
[data-theme="dark"] .publication-title {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .publication-meta {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .publication-abstract {
    color: var(--text-dark) !important;
}

[data-theme="dark"] .abstract-toggle {
    color: var(--primary-color) !important;
}

/* Model image containers */
[data-theme="dark"] .model-image-container {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .model-caption {
    color: var(--text-muted) !important;
}

/* Lightbox dark mode */
[data-theme="dark"] .lightbox-content {
    background: var(--card-bg) !important;
    color: var(--text-dark) !important;
}

[data-theme="dark"] .lightbox-header {
    background: var(--card-bg) !important;
    color: var(--text-dark) !important;
}

[data-theme="dark"] .lightbox-body {
    background: var(--card-bg) !important;
}

[data-theme="dark"] .lightbox-footer {
    background: var(--card-bg) !important;
    color: var(--text-dark) !important;
}

/* List items */
[data-theme="dark"] li {
    color: var(--text-dark) !important;
}

[data-theme="dark"] ul {
    color: var(--text-dark) !important;
}

/* Strong and emphasis text */
[data-theme="dark"] strong {
    color: var(--text-dark) !important;
}

[data-theme="dark"] em {
    color: var(--text-dark) !important;
}

/* Links */
[data-theme="dark"] a:not(.btn):not(.nav-link) {
    color: var(--primary-color) !important;
}

[data-theme="dark"] a:not(.btn):not(.nav-link):hover {
    /* 简化hover效果，防止抖动 */
    opacity: 0.8;
}

/* Footer enhancement */
[data-theme="dark"] footer {
    background: var(--card-bg) !important;
    color: var(--text-dark) !important;
    border-top: 1px solid var(--border-color) !important;
}

[data-theme="dark"] footer a {
    color: var(--primary-color) !important;
}

[data-theme="dark"] footer a:hover {
    /* 简化hover效果，防止抖动 */
    opacity: 0.8;
}

/* Research section specific */
[data-theme="dark"] .research-focus,
[data-theme="dark"] .research-interests,
[data-theme="dark"] .research-description {
    background: var(--card-bg) !important;
    color: var(--text-dark) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .research-description h4 {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .research-description li {
    color: var(--text-dark) !important;
}

[data-theme="dark"] .research-interests li {
    color: var(--text-dark) !important;
}

/* Hero section */
[data-theme="dark"] .hero {
    background: var(--bg-dark) !important;
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero h2,
[data-theme="dark"] .hero p,
[data-theme="dark"] .hero .lead {
    color: var(--text-dark) !important;
}

/* About section */
[data-theme="dark"] .about-section {
    background: var(--bg-dark) !important;
}

[data-theme="dark"] .about-section h1,
[data-theme="dark"] .about-section h2,
[data-theme="dark"] .about-section h3,
[data-theme="dark"] .about-section p {
    color: var(--text-dark) !important;
}

/* ===== Hero Section 现代化暗色模式 ===== */
[data-theme="dark"] .hero-section {
    background: var(--hero-gradient-dark) !important;
    color: var(--hero-text-primary) !important;
}

[data-theme="dark"] .hero-section::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .hero-content h1 {
    color: var(--hero-text-primary) !important;
    text-shadow: 0 0 20px rgba(77, 171, 247, 0.3) !important;
}

[data-theme="dark"] .hero-content h2 {
    color: var(--hero-text-secondary) !important;
}

[data-theme="dark"] .hero-content h3 {
    color: var(--hero-text-secondary) !important;
    opacity: 0.9;
}

[data-theme="dark"] .hero-content .lead {
    color: var(--hero-text-secondary) !important;
    opacity: 0.85;
}

/* Hero section 按钮暗色模式 */
[data-theme="dark"] .hero-section .btn-primary {
    background: var(--hero-button-bg) !important;
    border-color: var(--hero-button-border) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(77, 171, 247, 0.4) !important;
}

[data-theme="dark"] .hero-section .btn-primary:hover {
    /* 简化hover效果，防止抖动 */
    opacity: 0.9;
}

[data-theme="dark"] .hero-section .btn-outline-primary {
    border-color: var(--hero-button-border) !important;
    color: var(--hero-text-primary) !important;
    background: transparent !important;
}

[data-theme="dark"] .hero-section .btn-outline-primary:hover {
    /* 简化hover效果，防止抖动 */
    opacity: 0.8;
}

/* Hero section 社交链接暗色模式 */
[data-theme="dark"] .hero-section .social-link {
    color: var(--hero-text-secondary) !important;
    pointer-events: auto;
    z-index: 10;
    cursor: pointer;
}

[data-theme="dark"] .hero-section .social-link:hover {
    /* 简化hover效果，防止抖动 */
    opacity: 0.8;
}

/* 添加发光动画效果 - Removed */

/* ===== 暗色模式增强动画效果 ===== */

/* Hero section 背景动画 */
[data-theme="dark"] .hero-section {
    background: var(--hero-gradient-dark) !important;
    position: relative;
}

[data-theme="dark"] .hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(77, 171, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(77, 171, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* 确保hero-content在装饰层之上 */
[data-theme="dark"] .hero-section .hero-content {
    position: relative;
    z-index: 1;
}

/* 确保Hero section中的所有交互元素都可点击 */
[data-theme="dark"] .hero-section .d-flex,
[data-theme="dark"] .hero-section .social-links {
    position: relative;
    z-index: 2;
}

/* 按钮增强动画 - 简化版本 */
[data-theme="dark"] .hero-section .btn {
    position: relative;
    overflow: hidden;
    z-index: 3;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* 社交图标增强动画 - 简化版本 */
[data-theme="dark"] .social-link {
    position: relative;
    pointer-events: auto;
    z-index: 10;
    cursor: pointer;
}

/* 导航栏暗色模式增强 */
[data-theme="dark"] .navbar {
    background: rgba(13, 17, 23, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(77, 171, 247, 0.2) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .navbar-brand {
}

[data-theme="dark"] .navbar-brand:hover {
    /* 简化hover效果，防止抖动 */
    opacity: 0.8;
}

/* 暗色模式导航链接 - 简化版本 */
[data-theme="dark"] .navbar-nav .nav-link {
    pointer-events: auto;
}

[data-theme="dark"] .navbar-nav .nav-link:hover {
    /* 简化hover效果，防止抖动 */
    opacity: 0.9;
}

/* 语言切换按钮和主题切换按钮 - 明亮模式 */
#languageToggle,
#darkModeToggle {
    background: rgba(0, 86, 179, 0.1) !important;
    border: 2px solid #0056b3 !important;
    color: #0056b3 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 86, 179, 0.15);
}

#languageToggle i,
#darkModeToggle i {
    color: #0056b3 !important;
}

#languageToggle .lang-text {
    color: #0056b3 !important;
    font-weight: 600;
}

#languageToggle:hover,
#darkModeToggle:hover {
    background: rgba(0, 86, 179, 0.2) !important;
    border-color: #003d82 !important;
    color: #003d82 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.25);
}

#languageToggle:hover i,
#darkModeToggle:hover i {
    color: #003d82 !important;
}

#languageToggle:hover .lang-text {
    color: #003d82 !important;
}


/* 暗色模式切换按钮增强 - 暗黑模式 */
[data-theme="dark"] #languageToggle,
[data-theme="dark"] #darkModeToggle {
    background: rgba(77, 171, 247, 0.15) !important;
    border: 2px solid #4dabf7 !important;
    color: #4dabf7 !important;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(77, 171, 247, 0.2);
}

[data-theme="dark"] #languageToggle i,
[data-theme="dark"] #darkModeToggle i {
    color: #4dabf7 !important;
}

[data-theme="dark"] #languageToggle .lang-text {
    color: #4dabf7 !important;
    font-weight: 600;
}

[data-theme="dark"] #languageToggle:hover,
[data-theme="dark"] #darkModeToggle:hover {
    background: rgba(77, 171, 247, 0.3) !important;
    border-color: #74c0fc !important;
    color: #74c0fc !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(77, 171, 247, 0.3);
}

[data-theme="dark"] #languageToggle:hover i,
[data-theme="dark"] #darkModeToggle:hover i {
    color: #74c0fc !important;
}

[data-theme="dark"] #languageToggle:hover .lang-text {
    color: #74c0fc !important;
}

/* 卡片暗色模式增强 */
[data-theme="dark"] .card {
    background: rgba(45, 55, 72, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(77, 171, 247, 0.2) !important;
}

/* 滚动条暗色模式 */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 10px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: rgba(13, 17, 23, 0.8);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(77, 171, 247, 0.5);
    border-radius: 5px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    /* 简化hover效果，防止抖动 */
    opacity: 0.9;
}

/* 页面加载动画 - Removed */

/* 主题切换动画 - Removed */

/* 强制某些元素不过渡 */
.no-transition {
    transition: none !important;
}

/* ===== 社交图标样式优化 ===== */

/* Hero Section 社交链接 */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    z-index: 10;
    cursor: pointer;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    /* 简化hover效果，防止抖动 */
    opacity: 0.8;
}

.social-link i {
    font-size: 1.2rem;
    z-index: 2;
    position: relative;
}

/* Contact Section 社交链接 */
.social-links-large {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary-color);
    padding: 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    min-width: 120px;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.social-link-large:hover {
    /* 简化hover效果，防止抖动 */
    opacity: 0.8;
}

.social-link-large i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.social-link-large span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* 暗色模式社交图标 */
[data-theme="dark"] .social-link {
    background: rgba(77, 171, 247, 0.1);
    color: var(--hero-text-primary);
    pointer-events: auto;
    z-index: 10;
    box-shadow: inset 0 0 0 2px rgba(77, 171, 247, 0.3);
}

[data-theme="dark"] .social-link:hover {
    /* 简化hover效果，防止抖动 */
    opacity: 0.8;
}

[data-theme="dark"] .social-link-large {
    background: rgba(77, 171, 247, 0.05);
    color: var(--primary-color);
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(77, 171, 247, 0.2);
}

[data-theme="dark"] .social-link-large:hover {
    /* 简化hover效果，防止抖动 */
    opacity: 0.8;
}

/* 图标失败备选样式 */
.icon-fallback {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* 特定社交平台的颜色 - Removed */

/* 响应式设计 */
@media (max-width: 768px) {
    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link i {
        font-size: 1rem;
    }

    .social-links-large {
        gap: 1rem;
    }

    .social-link-large {
        min-width: 100px;
        padding: 0.75rem;
    }

    .social-link-large i {
        font-size: 2rem;
    }

    .social-link-large span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: 0.75rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }

    .social-links-large {
        flex-direction: column;
        gap: 0.75rem;
    }

    .social-link-large {
        min-width: 80px;
        flex-direction: row;
        padding: 0.5rem;
    }

    .social-link-large i {
        font-size: 1.5rem;
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
}