/* 导入 Rubik 字体 */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');

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

/* 设置基础样式 */
html, body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
}

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

/* 移除链接下划线 */
a {
    text-decoration: none;
    color: inherit;
}

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

/* 按钮样式重置 */
button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* 输入框样式重置 */
input, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

/* 全局过渡效果 */
.transition {
    transition: all 0.3s ease;
}

/* 常用flex布局类 */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 常用间距类 */
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 1rem; }
.m-4 { margin: 1.5rem; }
.m-5 { margin: 2rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 2rem; }

/* 常用文本类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* 常用颜色类 */
.text-primary { color: #007bff; }
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }
.text-info { color: #17a2b8; }

/* 响应式容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
}

/* 头部样式 */
.header {
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    z-index: 10;
}
.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav a {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.nav a:hover, .nav a.active, .nav .text-primary {
    color: #f46c8c;
    background: #fff4f7;
}

/* 底部样式优化 */
.footer {
    width: 100%;
    background: #181818;
    color: #fff;
    padding: 0;
    margin-top: 0;
}
.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
    padding: 20px 0;
}
.footer-link {
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover {
    color: #fbbf24;
}
.footer-copyright {
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 25px 0;
    background: #fff;
    margin: 0;
}

@media (max-width: 700px) {
    .footer-nav {
        flex-direction: column;
        gap: 18px;
        padding: 24px 0 0 0;
    }
    .footer-link {
        font-size: 1.1rem;
    }
    .footer-copyright {
        font-size: 1rem;
        padding: 20px 0 16px 0;
    }
} 