/* 极简样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

/* 亮色主题（默认） */
body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #f3f4f6;
    color: #374151;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #374151;
}

.subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 300;
}

/* 按钮容器 */
.button-container {
    margin-top: 3rem;
}

/* 访问按钮样式 */
.visit-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid #6b7280;
    color: #6b7280;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.visit-button:hover {
    background: #6b7280;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(107, 114, 128, 0.2);
}

.visit-button:active {
    transform: translateY(-1px);
}

/* 暗色主题 */
body[data-theme="dark"] {
    background: #111827;
    color: #e4e4e4;
}

body[data-theme="dark"] h1 {
    color: #ffffff;
}

body[data-theme="dark"] .subtitle {
    color: #9ca3af;
}

body[data-theme="dark"] .visit-button {
    border-color: #9ca3af;
    color: #9ca3af;
}

body[data-theme="dark"] .visit-button:hover {
    background: #9ca3af;
    color: #111827;
    box-shadow: 0 10px 25px rgba(156, 163, 175, 0.3);
}

body[data-theme="dark"] .theme-toggle {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* 保留原始媒体查询作为后备 */
@media (prefers-color-scheme: dark) {
    body:not([data-theme]) {
        background: #111827;
        color: #e4e4e4;
    }
    
    body:not([data-theme]) h1 {
        color: #ffffff;
    }
    
    body:not([data-theme]) .subtitle {
        color: #9ca3af;
    }
    
    body:not([data-theme]) .visit-button {
        border-color: #9ca3af;
        color: #9ca3af;
    }
    
    body:not([data-theme]) .visit-button:hover {
        background: #9ca3af;
        color: #111827;
        box-shadow: 0 10px 25px rgba(156, 163, 175, 0.3);
    }
}

/* 思考引用容器 */
.reflection-container {
    margin: 3rem 0 4rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.main-quote {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: #f0f0f0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.main-quote::before {
    content: '"';
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    left: -1rem;
    top: -0.5rem;
    font-family: serif;
}

.main-quote::after {
    content: '"';
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    right: -1rem;
    bottom: -1rem;
    font-family: serif;
}

.quote-attribution {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    font-style: normal;
}

/* 代码容器 */
.code-container {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    margin: 3rem 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    padding: 0 0 0 3rem;
    width: 100%;
}

.simple-code {
    padding: 2rem;
    font-family: 'Fira Code', monospace;
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    line-height: 1.8;
    text-align: left;
    color: #e8e8e8;
    background: transparent;
    border: none;
    overflow-x: auto;
}

/* 代码语法高亮 - 更柔和的颜色 */
.keyword { 
    color: #9d7cd8; 
    font-weight: 500; 
}

.function-name { 
    color: #7dcfff; 
    font-weight: 400; 
}

.string { 
    color: #9ece6a; 
}

.comment { 
    color: #565f89; 
    font-style: italic; 
}

.method { 
    color: #7aa2f7; 
}

/* 底部思考 */
.bottom-reflection {
    margin-top: 4rem;
    opacity: 0.8;
}

.small-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.8;
}

.small-text:last-child {
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

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

@keyframes float-particles {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .content-wrapper {
        padding: 1rem;
    }
    
    .reflection-container {
        padding: 1.5rem;
        margin: 2rem 0 3rem 0;
    }
    
    .main-quote {
        font-size: clamp(1rem, 4vw, 1.4rem);
    }
    
    .main-quote::before,
    .main-quote::after {
        font-size: 2rem;
    }
    
    .main-quote::before {
        left: -0.5rem;
        top: -0.3rem;
    }
    
    .main-quote::after {
        right: -0.5rem;
        bottom: -0.8rem;
    }
    
    .simple-code {
        padding: 1.5rem;
        font-size: 0.85rem;
    }
    
    .small-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 1rem;
    }
    
    .reflection-container {
        padding: 1rem;
    }
    
    .simple-code {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 选中文本样式 */
::selection {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

