* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 启用GPU加速 */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
    will-change: transform;
}

/* 图片加载优化 */
img {
    content-visibility: auto;
    contain: content;
}

/* 添加图片加载占位符样式 */
.img-placeholder {
    background: #f0f0f0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* 优化动画性能 */
.slide, .slide-content, .social-link, .drive-item {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* 优化滚动性能 */
.page-section {
    contain: content;
    content-visibility: auto;
}

/* 优化字体渲染 */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 添加深色模式变量 */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --header-bg: #f8f9fa;
    --card-bg: #ffffff;
    --shadow-color: rgba(0,0,0,0.1);
    --hover-bg: rgba(0,123,255,0.1);
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --header-bg: #2d2d2d;
    --card-bg: #2d2d2d;
    --shadow-color: rgba(255,255,255,0.1);
    --hover-bg: rgba(255,255,255,0.1);
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    /* 启用硬件加速 */
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}

header {
    background-color: var(--header-bg);
    padding: 1rem 0;
    box-shadow: 0 2px 5px var(--shadow-color);
}

nav {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: var(--hover-bg);
}

section {
    min-height: calc(100vh - 200px);
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-image img {
    max-width: 300px;
    border-radius: 50%;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.05);
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin: 0 2rem;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    height: calc(200px + 3rem);
    min-width: 300px;
}

.contact-info p {
    font-size: 1.2rem;
    margin: 1rem 0;
    font-weight: 500;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--header-bg);
    color: var(--text-color);
    margin-top: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    section {
        padding: 2rem 1rem;
    }
    
    .profile-image img {
        max-width: 200px;
    }
    
    .contact-info {
        height: auto;
        min-height: calc(150px + 3rem);
    }
} 

.page-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.page-section.active {
    display: block;
    opacity: 1;
}

nav ul li a.nav-link {
    position: relative;
}

nav ul li a.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a.nav-link:hover::after {
    width: 80%;
} 

.slideshow {
    position: relative;
    width: 100%;
    height: calc(100vh - 200px);
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* 启用硬件加速 */
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0); /* 使用translate3d代替translate */
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 1;
    will-change: transform;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translate3d(0, -50%, 0); /* 使用translate3d */
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 1rem;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 2;
    transition: background 0.3s ease;
    will-change: transform, background;
}

.slide-btn:hover {
    background: rgba(0,0,0,0.8);
}

.prev {
    left: 1rem;
}

.next {
    right: 1rem;
}

.dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: white;
}

@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-btn {
        padding: 0.5rem;
        font-size: 1rem;
    }
} 

/* 社交媒体链接样式 */
.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
    width: 120px;
    /* 启用硬件加速 */
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.social-link:hover {
    transform: translate3d(0, -5px, 0); /* 使用translate3d */
    filter: brightness(1.1);
}

.platform-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.platform-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.social-link span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* 平台特定的悬停效果 */
.social-link:hover .douyin {
    background: linear-gradient(45deg, #FE2C55, #25F4EE);
}

.social-link:hover .kuaishou {
    background: linear-gradient(45deg, #ff4906, #ffd306);
}

.social-link:hover .xiaohongshu {
    background: linear-gradient(45deg, #ffffff, #ffffff);
    box-shadow: 0 4px 15px rgba(255, 36, 66, 0.3);
}

.social-link:hover .bilibili {
    background: linear-gradient(45deg, #FB7299, #FB7299);
}

.social-link:hover .weibo {
    background: linear-gradient(45deg, #FF8200, #FF8200);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        width: 100px;
    }
    
    .platform-icon {
        width: 60px;
        height: 60px;
    }
    
    .platform-icon img {
        width: 35px;
        height: 35px;
    }
    
    .social-link span {
        font-size: 1rem;
    }
} 

/* 深色模式切换按钮样式 */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--card-bg);
    box-shadow: 0 2px 5px var(--shadow-color);
}

.theme-toggle .sun,
.theme-toggle .moon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .theme-toggle .sun {
    opacity: 0;
}

[data-theme="dark"] .theme-toggle .moon {
    opacity: 1;
}

[data-theme="light"] .theme-toggle .sun {
    opacity: 1;
}

[data-theme="light"] .theme-toggle .moon {
    opacity: 0;
}

/* 社交媒体卡片深色模式适配 */
[data-theme="dark"] .social-link {
    color: var(--text-color);
}

[data-theme="dark"] .platform-icon {
    background: var(--card-bg);
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* 轮播文字深色模式适配 */
[data-theme="dark"] .slide-content {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* 响应式设计深色模式适配 */
@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
} 

/* 为小红书图标单独设置尺寸 */
.platform-icon.xiaohongshu img {
    width: 45px;
    height: 45px;
}

/* 为小红书添加特殊的悬停效果 */
.social-link:hover .xiaohongshu img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
} 

/* 联系方式容器样式 */
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* 二维码容器样式 */
.qr-code-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code {
    text-align: center;
    padding: 1rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.qr-code:hover {
    transform: scale(1.05);
}

.qr-code img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.qr-code p {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
}

/* 中间联系信息样式调整 */
.contact-info {
    flex: 1;
    text-align: center;
    margin: 0 2rem;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .qr-code img {
        width: 150px;
        height: 150px;
    }
    
    .contact-info {
        margin: 2rem 0;
        width: 100%;
    }
} 

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    /* 启用硬件加速 */
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-close {
    position: absolute;
    right: 35px;
    top: 25px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.qr-trigger {
    cursor: pointer;
}

/* 添加动画效果 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.modal.active {
    display: block;
    animation: modalFadeIn 0.3s ease-in-out;
} 

/* 可复制文本样式 */
.copyable {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.copyable span {
    margin-left: 5px;
}

.copyable:hover {
    background-color: var(--hover-bg);
}

/* 提示框样式 */
.copy-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.copy-tooltip.show {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

/* 深色模式适配 */
[data-theme="dark"] .copyable:hover {
    background-color: var(--hover-bg);
}

[data-theme="dark"] .copy-tooltip {
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
}

[data-theme="dark"] .copy-tooltip::after {
    border-color: rgba(255, 255, 255, 0.8) transparent transparent transparent;
} 

/* 响应式调整 */
@media (max-width: 768px) {
    .copyable {
        font-size: 0.9rem;
    }
    
    .contact-info {
        min-width: auto;
        width: 100%;
    }
} 

/* 删除网盘工具相关样式 */
.cloud-drive-tools,
.drive-container,
.drive-item,
.drive-icon,
.drive-buttons,
.drive-btn,
.download-btn,
.version-tag,
.download-modal,
.download-content,
.download-close,
.download-options,
.download-option {
    display: none;
}

/* 调整关于我部分的样式 */
.about-content {
    padding: 2rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1000px;
} 

/* 公司标题样式 */
.company-title {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 2px solid var(--shadow-color);
}

.company-title h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    font-weight: bold;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

/* 深色模式适配 */
[data-theme="dark"] .company-title h1 {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .company-title h1 {
        font-size: 2rem;
    }
    
    .company-title {
        margin-bottom: 2rem;
        padding: 1.5rem 0;
    }
} 