/* 字体声明 */
@font-face {
    font-family: 'SourceHanSans';
    src: url('../assets/fonts/SourceHanSansOLD-Normal-2.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SourceHanSans';
    src: url('../assets/fonts/SourceHanSansOLD-Bold-2.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CadillacGothic';
    src: url('../assets/fonts/CadillacGothic-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CadillacGothic';
    src: url('../assets/fonts/CadillacGothic-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Reset & 基础全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    width: 100vw;
    min-height: 100vh;
    font-family: 'SourceHanSans', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background: #f5f7fa;
    overflow: auto !important;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
    position: relative;
}
body::-webkit-scrollbar, html::-webkit-scrollbar {
    display: none;             /* Chrome, Safari, Opera */
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SourceHanSans', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 英文数字专用字体样式 */
.en-num {
    font-family: 'CadillacGothic', 'SourceHanSans', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    letter-spacing: 0.03em;
}

.en-num-bold {
    font-family: 'CadillacGothic', 'SourceHanSans', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    font-weight: bold;
    letter-spacing: 0.03em;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 通用动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes arrow-bounce {
    0% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(12px); }
    100% { transform: translateX(-50%) translateY(0); }
}

/* 通用工具类 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* 响应式工具类 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
} 