/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: white !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: white !important;
    overflow-x: hidden;
    background: #000000;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 5px rgba(0, 0, 0, 0.9);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.1;
    z-index: -2;
}

/* 移除raytracing-enabled类，避免影响滚动 */
.raytracing-background {
    background: transparent;
    position: relative;
}

.raytracing-enabled::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        radial-gradient(circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%), 
            rgba(100, 200, 255, 0.4) 0%, 
            rgba(50, 150, 255, 0.2) 40%, 
            transparent 70%),
        radial-gradient(circle 600px at var(--mouse-x, 50%) var(--mouse-y, 50%), 
            rgba(100, 200, 255, 0.15) 0%, 
            rgba(50, 150, 255, 0.05) 60%, 
            transparent 90%);
    z-index: 9999;
    animation: glowPulse 3s ease-in-out infinite alternate;
}

.raytracing-enabled::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        radial-gradient(circle 150px at var(--mouse-x, 50%) var(--mouse-y, 50%), 
            rgba(255, 255, 255, 0.3) 0%, 
            rgba(100, 200, 255, 0.1) 30%, 
            transparent 60%);
    z-index: 9998;
    animation: coreGlow 2s ease-in-out infinite alternate;
    mix-blend-mode: screen;
}

@keyframes glowPulse {
    0% { opacity: 0.3; transform: scale(0.98); }
    100% { opacity: 0.6; transform: scale(1.02); }
}

@keyframes coreGlow {
    0% { opacity: 0.2; transform: scale(0.95); }
    100% { opacity: 0.5; transform: scale(1.05); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 100, 255, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.1);
}

.navbar a {
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 语言下拉菜单样式 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-links-container:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-links-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-links-container:hover::before {
    left: 100%;
}

.mini-nav {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.mini-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.mini-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.mini-nav:hover::before {
    left: 100%;
}

.mini-nav:active {
    transform: translateY(-1px) scale(0.98);
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-dropdown-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.95);
}

.language-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-dropdown-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.language-dropdown-btn:hover::before {
    left: 100%;
}

.language-dropdown-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.language-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    z-index: 1001;
    min-width: 140px;
    margin-top: 8px;
    overflow: hidden;
    transform-origin: top right;
}

.language-dropdown.active .language-dropdown-content {
    display: block;
    animation: dropdownSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.lang-option {
    display: block;
    padding: 0.85rem 1.2rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.95);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px) scale(1.02);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.lang-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.lang-option:hover::before {
    left: 100%;
}

.lang-option.active {
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.nav-logo h2 {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffd700;
}



/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    text-shadow: 0 0 12px rgba(0, 0, 0, 1), 0 0 8px rgba(0, 0, 0, 1), 0 0 4px rgba(0, 0, 0, 0.9);
}

.btn-primary {
    background: #ffd700;
    color: #333 !important;
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white !important;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea !important;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-placeholder {
    width: 400px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    animation: fadeIn 1s ease-out 0.6s both;
}

/* 个人简介卡片样式 */
.profile-section {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.profile-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.profile-card h1,
.profile-card p,
.profile-card h2,
.profile-card h3 {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 5px rgba(0, 0, 0, 0.9);
}

.avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-card h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.social-links-inline {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: inline-block;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.social-link:hover {
    color: white;
    transform: translateY(-3px);
}

/* 工具与网站集合 */
.tools-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.tools-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.tools-section .section-title {
    color: white;
    margin-bottom: 10px;
    position: relative;
    z-index: 10;
}

.tools-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.tools-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.filter-btn {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 0.95);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.tool-card {
    display: block;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 5;
}

.tool-card h3,
.tool-card p {
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.95);
    animation: cardFadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 25px;
    z-index: 1;
}

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

.tool-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

.tool-card:active {
    transform: translateY(-4px) scale(1.01);
    transition: all 0.1s ease;
}

a.tool-card,
a.tool-card:visited,
a.tool-card:hover,
a.tool-card:active,
a.tool-card:focus,
.tool-card,
.tool-card *,
.tool-card h3,
.tool-card p,
.tool-card span,
.tool-card .tool-tag,
.tool-card .tool-icon,
.tool-card [class*="tool-"] {
    color: white !important;
    text-decoration: none !important;
    opacity: 1 !important;
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tool-card:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tool-card:hover .tool-icon {
    transform: scale(1.15) rotate(5deg);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tool-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: white !important;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.tool-card:hover h3 {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tool-card p {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.5;
    color: white !important;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.tool-card:hover p {
    opacity: 0.9;
}

.tool-tag {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white !important;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover .tool-tag {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 页脚样式 */
.footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #667eea;
}

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

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

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

/* 圆形导航按钮样式 */
.nav-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    display: flex;
}

/* 移除不再需要的show类，按钮显示通过display控制 */

.nav-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.nav-toggle-btn:active {
    transform: scale(0.95);
}

.nav-toggle-btn i {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-toggle-btn:hover i {
    transform: rotate(180deg);
}

/* 导航栏隐藏动画 */
.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
    opacity: 0;
}

.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.navbar.show {
    transform: translateY(0);
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-toggle-btn {
        width: 50px;
        height: 50px;
        top: 15px;
        right: 15px;
    }
    
    .nav-toggle-btn i {
        font-size: 1.2rem;
    }
}

/* 联系方式弹出窗口 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.modal.hide {
    animation: fadeOut 0.3s ease forwards;
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content {
    animation: slideIn 0.3s ease;
}

.modal-content.slide-out {
    animation: slideOut 0.3s ease forwards;
}

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

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

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0) scale(1);
    }
}

@keyframes slideOut {
    from { 
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0) scale(1);
    }
    to { 
        opacity: 0;
        transform: translate(-50%, -50%) translateY(50px) scale(0.9);
    }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 15px;
    z-index: 1;
    pointer-events: none;
}

.close {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1) rotate(0deg);
    z-index: 1000;
    text-shadow: 0 0 12px rgba(0, 0, 0, 1), 0 0 8px rgba(0, 0, 0, 1), 0 0 4px rgba(0, 0, 0, 0.9);
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

.close:active {
    transform: scale(0.95) rotate(180deg);
    transition: all 0.1s ease;
}

.close {
    animation: fadeInClose 0.5s ease-out;
}

@keyframes fadeInClose {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-90deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.modal-content h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 24px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-option {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.contact-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-option p {
    color: white;
    margin: 5px 0;
    font-size: 16px;
}

.contact-option .email-address {
    font-family: monospace;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-option .email-address:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.contact-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    padding: 12px 25px;
    font-size: 16px;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-link {
    cursor: pointer;
}

/* 工具详情弹窗样式 */
#tool-modal .modal-content {
    max-width: 500px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#tool-modal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 15px;
    z-index: 1;
    pointer-events: none;
}

#tool-modal-content,
#tool-modal-content p {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin: 10px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    line-height: 1.6;
}

#tool-modal .btn,
#tool-modal .btn-primary,
#tool-modal .btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-radius: 25px !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    margin: 5px;
    padding: 12px 25px;
    font-size: 16px;
    position: relative;
    z-index: 2;
}

#tool-modal .btn:hover,
#tool-modal .btn-primary:hover,
#tool-modal .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 光追画布样式 */
#raytracer-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

/* 毛玻璃悬停动效 */
.hero-placeholder,
.profile-card,
.contact-option .email-address,
.contact-btn,
#tool-modal .modal-content,
#tool-modal-content,
#tool-modal .btn,
#tool-modal .btn-primary,
#tool-modal .btn-secondary,
.navbar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.hero-placeholder:hover,
.profile-card:hover,
.contact-option .email-address:hover,
.contact-btn:hover,
#tool-modal .modal-content:hover,
#tool-modal-content:hover,
#tool-modal .btn:hover,
#tool-modal .btn-primary:hover,
#tool-modal .btn-secondary:hover,
.navbar:hover {
    backdrop-filter: blur(20px) brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* 工具卡片特殊处理 - 避免文字模糊 */
.tool-card:hover {
    backdrop-filter: blur(15px) brightness(1.05);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.tool-card:hover .tool-icon,
.tool-card:hover h3,
.tool-card:hover p {
    transform: none;
    filter: none;
}

/* 全新文字波浪动效 */
.wave-container {
    display: inline-block;
    position: relative;
    white-space: pre-wrap;
}

.wave-char {
    display: inline-block;
    position: relative;
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    transform-origin: center;
}

/* 性能优化：减少重绘 */
.wave-container * {
    backface-visibility: hidden;
    perspective: 1000px;
}

/* 防止文字模糊 */
.wave-char {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-right {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        margin-top: 1rem;
    }

    .nav-links-container {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        padding: 1rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .mini-nav {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 20px;
    }

    .language-dropdown-content {
        right: -50px;
        left: auto;
        min-width: 100px;
    }
    
    .language-dropdown-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .language-dropdown-btn i {
        font-size: 0.8rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        justify-content: center;
    }

    .footer .container {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-content {
        margin: 10% 5%;
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .feature-card {
        padding: 2rem;
    }

    .hero-placeholder,
    .image-placeholder {
        width: 100%;
        max-width: 300px;
    }
}

/* 展开卡片标题毛玻璃悬停动效 - 定制渐变 */
.modal-header-glass {
    padding: 2rem;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.42) 0%, 
        rgba(255, 255, 255, 0.38) 8%, 
        rgba(255, 255, 255, 0.34) 16%, 
        rgba(255, 255, 255, 0.3) 24%, 
        rgba(255, 255, 255, 0.26) 32%, 
        rgba(255, 255, 255, 0.22) 40%, 
        rgba(255, 255, 255, 0.18) 48%, 
        rgba(255, 255, 255, 0.14) 56%, 
        rgba(255, 255, 255, 0.1) 64%, 
        rgba(255, 255, 255, 0.06) 72%, 
        rgba(255, 255, 255, 0.03) 80%, 
        rgba(255, 255, 255, 0.01) 84%, 
        rgba(255, 255, 255, 0) 100%);
    border-radius: 20px 20px 0 0;
    backdrop-filter: blur(25px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: none;
    transition: all 0.7s ease;
    position: relative;
    overflow: hidden;
}

.modal-header-glass:hover {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.63) 0%, 
        rgba(255, 255, 255, 0.58) 8%, 
        rgba(255, 255, 255, 0.53) 16%, 
        rgba(255, 255, 255, 0.48) 24%, 
        rgba(255, 255, 255, 0.43) 32%, 
        rgba(255, 255, 255, 0.38) 40%, 
        rgba(255, 255, 255, 0.33) 48%, 
        rgba(255, 255, 255, 0.28) 56%, 
        rgba(255, 255, 255, 0.23) 64%, 
        rgba(255, 255, 255, 0.18) 72%, 
        rgba(255, 255, 255, 0.13) 80%, 
        rgba(255, 255, 255, 0.08) 84%, 
        rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(30px) saturate(160%);
    transform: translateY(-4px);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
}

.modal-header-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.modal-header-glass:hover::before {
    left: 100%;
}

.modal-body {
    padding: 0 2rem 2rem;
    background: transparent;
    border-radius: 0 0 20px 20px;
    border: none;
    border-top: none;
}
/* 工具弹窗标题毛玻璃悬停动效 */
#tool-modal-title {
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin-top: 0.5rem;
}

#tool-modal-title:hover {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#tool-modal-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

#tool-modal-title:hover::before {
    left: 100%;
}