/* 全局样式 */
:root {
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #f0f0f0;
    --background-color: #fff;
    --text-color: #333;
    --light-text: #999;
    --border-color: #eaeaea;
    --transition-speed: 0.3s;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    
    /* 毛玻璃效果变量 */
    --content-bg-opacity: 0.85;
    --content-blur: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: #000;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
    background-color: transparent;
}

/* 粒子背景样式 */
#particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    margin: 0;
    padding: 0;
    border: none;
    pointer-events: auto;
    background: url('../images/backgrounds/gif/background.gif') center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: transparent;
    transition: all var(--transition-speed) ease;
    color: #fff;
    border: none;
    box-shadow: none;
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xs) 20px;
    box-shadow: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.nav ul {
    display: flex;
    gap: var(--spacing-md);
}

.nav a {
    position: relative;
    font-weight: 500;
    color: #fff;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width var(--transition-speed) ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #fff;
    transition: all var(--transition-speed) ease;
}

/* 首屏区域样式 */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    color: #fff;
    width: 100vw;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-profile {
    position: relative;
    margin-right: 50px;
    z-index: 2;
}

.hero-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    max-width: 500px;
    position: relative;
    text-align: left;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.highlight {
    position: relative;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: -1;
}

.subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.btn.primary {
    background-color: #fff;
    color: #000;
}

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

.btn.secondary {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
}

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

/* 内容预览区样式 */
.preview-section {
    padding: var(--spacing-xl) 20px;
    position: relative;
    background-color: rgba(255, 255, 255, calc(var(--content-bg-opacity) - 0.1));
    backdrop-filter: blur(var(--content-blur));
    -webkit-backdrop-filter: blur(var(--content-blur));
    z-index: 1;
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    position: relative;
}

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

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 3/4;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-speed) ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-item:hover .photo-overlay {
    opacity: 1;
    transform: translateY(0);
}

.photo-overlay h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.photo-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.section-more {
    text-align: center;
    margin-top: var(--spacing-md);
}

.more-link {
    display: inline-block;
    position: relative;
    font-weight: 500;
    padding-bottom: 5px;
}

.more-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
}

.more-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 文章卡片样式 */
.article-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.article-card {
    padding: var(--spacing-md);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.7);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.article-date {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: var(--spacing-xs);
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.article-excerpt {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.read-more {
    display: inline-block;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: transform var(--transition-speed) ease;
    display: inline-block;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* 社交媒体链接样式 */
.social-section {
    padding: var(--spacing-xl) 20px;
    background-color: rgba(255, 255, 255, calc(var(--content-bg-opacity) - 0.1));
    backdrop-filter: blur(var(--content-blur));
    -webkit-backdrop-filter: blur(var(--content-blur));
    text-align: center;
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--background-color);
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.social-link svg {
    width: 30px;
    height: 30px;
    fill: var(--primary-color);
}

/* 页脚样式 */
.footer {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(var(--content-blur));
    -webkit-backdrop-filter: blur(var(--content-blur));
    color: white;
    padding: var(--spacing-lg) 0;
    border-radius: 20px 20px 0 0;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

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

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 日夜模式切换按钮 */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

#theme-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

#theme-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.sun-icon, .moon-icon {
    position: absolute;
    transition: all 0.3s ease;
}

.sun-icon {
    opacity: 0;
    transform: translateY(20px);
}

.moon-icon {
    opacity: 1;
    transform: translateY(0);
}

/* 白天模式样式 */
body.light-mode {
    background-color: #f8f9fa;
    color: #333;
}

body.light-mode #particles-background {
    background: url('../images/backgrounds/gif/background.gif') center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.8; /* 在亮色模式下稍微降低背景不透明度 */
}

body.light-mode .header {
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
}

body.light-mode .nav a {
    color: #333;
}

body.light-mode .nav a::after {
    background-color: #333;
}

body.light-mode .hero {
    color: #333;
}

body.light-mode .highlight::after {
    background-color: rgba(255, 220, 0, 0.4);
}

body.light-mode .subtitle {
    color: #666;
}

body.light-mode .btn.primary {
    background-color: #333;
    color: #fff;
}

body.light-mode .btn.secondary {
    border-color: #333;
    color: #333;
}

body.light-mode .preview-section {
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.light-mode .social-section {
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.light-mode .footer {
    background-color: rgba(60, 60, 70, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

body.light-mode #theme-toggle-btn {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

body.light-mode .sun-icon {
    opacity: 1;
    transform: translateY(0);
}

body.light-mode .moon-icon {
    opacity: 0;
    transform: translateY(-20px);
} 