:root {
    --primary-color: #D97757;
    --secondary-color: #C96442;
    --accent-color: #E8DDD5;
    --success-color: #34C759;
    
    --bg-primary: #FAF9F7;
    --bg-secondary: #FFFFFF;
    --text-primary: #1A1915;
    --text-secondary: #6B6560;
    
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(209, 199, 189, 0.4);
    --shadow-light: rgba(0, 0, 0, 0.06);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    
    --gradient-1: linear-gradient(135deg, #D97757 0%, #C96442 100%);
    --gradient-2: linear-gradient(135deg, #E8A87C 0%, #D97757 100%);
    --gradient-3: linear-gradient(135deg, #C4A77D 0%, #D97757 100%);
}

[data-theme="dark"] {
    --bg-primary: #1A1915;
    --bg-secondary: #242320;
    --text-primary: #E8E4DE;
    --text-secondary: #9B9590;
    
    --glass-bg: rgba(36, 35, 32, 0.9);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    
    --primary-color: #D97757;
    --gradient-1: linear-gradient(135deg, #D97757 0%, #E8A87C 100%);
    --gradient-2: linear-gradient(135deg, #C96442 0%, #D97757 100%);
    --gradient-3: linear-gradient(135deg, #C4A77D 0%, #D97757 100%);
}

@import url('https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.7.0/style.css');

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

body {
    font-family: 'LXGW WenKai', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(217, 119, 87, 0.15), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(232, 168, 124, 0.12), transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 50%, rgba(196, 167, 125, 0.1), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] body::before {
    background: 
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(217, 119, 87, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(232, 168, 124, 0.06), transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 50%, rgba(196, 167, 125, 0.05), transparent 50%);
}

html {
    scroll-behavior: smooth;
}

.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px var(--shadow-light);
}

[data-theme="dark"] .glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 15px 30px;
    border-radius: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .navbar {
    background: rgba(26, 25, 21, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    transform: scale(1.05);
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
}

.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

.theme-toggle .moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon {
    display: inline;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    padding-top: 100px;
}

[data-theme="dark"] .hero {
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 80, 200, 0.15), transparent),
                var(--bg-primary);
}

[data-theme="dark"] .shape {
    opacity: 0.15;
    filter: blur(60px);
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .btn-primary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
}

.btn-secondary:hover {
    transform: translateY(-3px);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-1);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--gradient-2);
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--gradient-3);
    bottom: 10%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.section {
    padding: 100px 20px;
    position: relative;
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card {
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .about-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-medium);
}

.card-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    padding: 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-medium);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-header h3 {
    font-size: 22px;
    color: var(--text-primary);
}

.project-tag {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tech-tag {
    background: var(--glass-bg);
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 13px;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

[data-theme="dark"] .tech-tag {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .project-tag {
    background: rgba(217, 119, 87, 0.2);
    color: #D97757;
}

[data-theme="dark"] .section {
    background: var(--bg-primary);
}

[data-theme="dark"] .section:nth-child(even) {
    background: var(--bg-secondary);
}

[data-theme="dark"] .footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
}



.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.skill-category {
    padding: 35px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .skill-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.skill-category h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-name {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
}

[data-theme="dark"] .skill-bar {
    background: rgba(255, 255, 255, 0.1);
}

.skill-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 10px;
    transition: width 1s ease;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    padding: 40px;
    border-radius: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.contact-icon {
    font-size: 28px;
    min-width: 40px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

[data-theme="dark"] .contact-icon {
    color: #D97757;
}

[data-theme="dark"] .contact-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .contact-link:hover {
    color: #E8A87C;
}

.contact-item h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer {
    padding: 40px 20px;
    text-align: center;
    border-radius: 30px 30px 0 0;
    margin-top: 50px;
}

.footer p {
    color: var(--text-secondary);
    margin: 5px 0;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .navbar {
        width: 95%;
        padding: 15px 20px;
    }
    
    .about-content,
    .projects-grid,
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}


/* 新页面样式 */
.page-hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    background: var(--bg-primary);
}

[data-theme="dark"] .page-hero {
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 80, 200, 0.15), transparent),
                var(--bg-primary);
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* 关于页面样式 */
.about-detail {
    padding: 40px;
    border-radius: 30px;
}

.about-intro {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.avatar-large {
    font-size: 100px;
    min-width: 150px;
    text-align: center;
}

.intro-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.intro-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* 时间线样式 */
.timeline-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 45px;
    width: 2px;
    height: calc(100% - 25px);
    background: var(--gradient-1);
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient-1);
    flex-shrink: 0;
    margin-top: 5px;
}

.timeline-content h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 联系页面样式 */
.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.contact-info {
    padding: 40px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .contact-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-info .social-icons {
    margin-top: auto;
    padding-top: 30px;
}

.contact-info h3,
.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.contact-form-wrapper {
    padding: 40px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.1);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* 社交图标 */
.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    background: var(--gradient-1);
    color: white;
}

/* 项目链接 */
.project-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--secondary-color);
}

/* 工具网格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.tool-item {
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-5px);
}

.tool-item i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.tool-item span {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 导航激活状态 */
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

/* Logo 链接样式 */
a.logo {
    text-decoration: none;
}

@media (max-width: 768px) {
    .about-intro {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-row {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .back-to-top {
    background: rgba(26, 25, 21, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .back-to-top:hover {
    background: rgba(26, 25, 21, 0.8);
}

/* 电子时钟样式 */
.clock-widget {
    min-width: 280px;
    text-align: center;
}

.clock-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.digital-clock {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.digit-box {
    width: 50px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .digit-box {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.digit-box span {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.clock-colon {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.clock-info {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--glass-border);
}

.clock-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.clock-lunar {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.clock-lunar .solar-term {
    color: var(--primary-color);
    margin-left: 8px;
}

.clock-fortune {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    gap: 15px;
}

.clock-fortune .good {
    color: #34C759;
}

.clock-fortune .bad {
    color: #FF6B6B;
}

/* 小组件容器 */
.widgets-container {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    justify-content: center;
    flex-wrap: wrap;
}

.widget {
    padding: 15px 20px;
    border-radius: 20px;
    min-width: 300px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.widget-header i {
    color: var(--primary-color);
    font-size: 18px;
}

/* 日历样式 */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cal-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cal-nav-btn:hover {
    background: var(--glass-border);
    color: var(--primary-color);
}

.calendar-month {
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 2px;
}

.calendar-day .solar-day {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.calendar-day .lunar-day {
    font-size: 9px;
    color: var(--text-secondary);
    margin-top: 1px;
}

.calendar-day:hover {
    background: var(--glass-border);
}

.calendar-day.today {
    background: var(--gradient-1);
}

.calendar-day.today .solar-day,
.calendar-day.today .lunar-day {
    color: white;
}

.calendar-day.other-month {
    opacity: 0.3;
}

/* 天气样式 */
.weather-content {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.weather-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-secondary);
    flex: 1;
}

.weather-location {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.weather-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.weather-icon {
    font-size: 48px;
}

.weather-temp {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
}

.weather-desc {
    color: var(--text-secondary);
}

.weather-details {
    display: flex;
    justify-content: space-around;
    padding-top: 10px;
    border-top: 1px solid var(--glass-border);
    margin-top: 15px;
}

.weather-detail {
    text-align: center;
}

.weather-detail i {
    color: var(--primary-color);
    margin-bottom: 5px;
    display: block;
}

.weather-detail span {
    font-size: 13px;
    color: var(--text-secondary);
}

.weather-location {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.weather-error {
    color: var(--text-secondary);
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.weather-error i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

/* 每日格言样式 */
.quote-widget {
    min-width: 280px;
}

.quote-content {
    text-align: center;
    padding: 5px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quote-loading {
    color: var(--text-secondary);
    padding: 15px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-style: italic;
    position: relative;
    padding: 0 10px;
}

.quote-author {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: right;
}

.quote-author::before {
    content: '—— ';
}

.quote-refresh {
    margin-top: 15px;
    padding: 6px 14px;
    border: none;
    border-radius: 20px;
    background: var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.quote-refresh:hover {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .widgets-container {
        flex-direction: column;
        align-items: center;
    }
    
    .widget {
        width: 100%;
        max-width: 300px;
    }
}
