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

/* 根元素变量定义 */
:root {
    /* 亮色主题 */
    --bg-color: #ffffff;
    --text-color: #262626;
    --secondary-text: #8e8e8e;
    --accent-color: #0095f6;
    --border-color: #dbdbdb;
}

/* 暗色主题 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --text-color: #ffffff;
        --secondary-text: #a8a8a8;
        --accent-color: #0095f6;
        --border-color: #262626;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* 渐变背景 */
.gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.7;
}

/* 内容区域 */
.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 600px;
    padding: 2rem;
}

/* 标题样式 */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    background: linear-gradient(45deg, var(--accent-color), #bc2a8d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* 段落样式 */
p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

/* Instagram风格按钮 */
button {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-position: right center;
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .content {
        padding: 1rem;
    }
    button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.content {
    animation: fadeIn 1s ease-out forwards;
}