/**
 * 基础样式重置
 * TSF研究所 - ACG文化兴趣部落
 */

/* ==========================================
   Reset & Base
   ========================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-body);
    font-weight: var(--font-weight-body);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 装饰性背景 */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-blob-1);
    top: -10%;
    right: -10%;
    animation: float 20s ease-in-out infinite;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-blob-2);
    bottom: -15%;
    left: -10%;
    animation: float 25s ease-in-out infinite reverse;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--gradient-blob-3);
    top: 40%;
    left: 30%;
    animation: float 18s ease-in-out infinite 5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--color-border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border-light) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

/* ==========================================
   Typography
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-heading-bold);
    line-height: var(--line-height-tight);
    color: var(--color-primary);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-base); }

p {
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-dark);
}

/* ==========================================
   Lists
   ========================================== */

ul, ol {
    list-style: none;
}

/* ==========================================
   Images
   ========================================== */

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

/* ==========================================
   Forms
   ========================================== */

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ==========================================
   Selection
   ========================================== */

::selection {
    background-color: var(--color-accent-soft);
    color: var(--color-primary);
}

/* ==========================================
   Scrollbar
   ========================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border-dark);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-tertiary);
}

/* ==========================================
   Utility Classes
   ========================================== */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-container-desktop);
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================
   Section Header
   ========================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-section-desktop);
}

.section-label {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-body-medium);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-element);
}

.section-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-element);
}

.section-subtitle {
    font-size: var(--font-size-md);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}
