/* CSS重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.8;
    color: var(--gallery-text);
    background: var(--gallery-bg-gradient);
    overflow-x: hidden;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
}

h1 {
    font-size: 3.5rem;
    font-weight: var(--font-weight-light);
    letter-spacing: 8px;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: 4px;
}

h3 {
    font-size: 1.8rem;
    letter-spacing: 3px;
}

/* 段落样式 */
p {
    margin-bottom: var(--spacing-sm);
    line-height: 2.2;
}

/* 链接样式 */
a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal) ease;
}

/* 列表样式 */
ul, ol {
    list-style: none;
}

/* 按钮样式 */
button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-normal) ease;
}

/* 输入框样式 */
input, textarea {
    font-family: inherit;
    border: 1px solid var(--song-mist);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-sm);
    background: var(--song-paper);
    transition: all var(--transition-normal) ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--gallery-secondary);
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.1);
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 容器样式 */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding-desktop);
}

/* 文本缩进 */
.text-indent {
    text-indent: 2em;
}

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

::-webkit-scrollbar-track {
    background: var(--gallery-navy-mid);
}

::-webkit-scrollbar-thumb {
    background: var(--gallery-navy-light);
    border-radius: var(--border-radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gallery-secondary);
} 