/* 基础样式重置 & 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 通用链接样式 */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* 通用列表样式 */
ul {
    list-style: none;
}

/* 通用表单元素样式 */
input, button, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

input:focus, button:focus {
    outline: none;
    border-color: #ff8c00;
}

/* 通用容器 */
.container {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 隐藏元素 */
.hidden {
    display: none !important;
}

/* 加载中状态 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #ff8c00;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 通用动画 */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 基础响应式断点 */
@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}