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

/* 根变量定义 */
:root {
    --primary-color: #032B44;
    --secondary-color: #F5F7FA;
    --accent-green: #3EBD70;
    --accent-orange: #FFA800;
    --text-color: #333333;
    --background-gradient: linear-gradient(135deg, #032B44, #3EBD70);
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Lato', sans-serif;
}

/* 全局样式 */
body {
    font-family: var(--font-secondary);
    background: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--primary-color);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .logo {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: bold;
}

.navbar .menu {
    display: flex;
    gap: 20px;
}

.navbar .menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.navbar .menu a:hover {
    color: var(--accent-green);
}

.navbar .login-btn {
    background: var(--accent-orange);
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}

.navbar .login-btn:hover {
    background: var(--accent-green);
}

/* 主要内容区域 */
.main {
    padding: 100px 20px 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.header h1 {
    font-family: var(--font-primary);
    font-size: 36px;
    margin-bottom: 10px;
    background: var(--background-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    font-size: 18px;
    color: var(--text-color);
}

/* 卡片布局 */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-family: var(--font-primary);
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card-body p {
    font-size: 16px;
    color: var(--text-color);
}

/* 示例数据展示 */
.sample-data {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 60px;
}

.sample-data h2 {
    font-family: var(--font-primary);
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.sample-data p.notice {
    font-size: 16px;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.sample-data ul {
    list-style: disc inside;
    margin-bottom: 20px;
}

.sample-data ul li {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-color);
}

.sample-data pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

.sample-data code {
    background: #e0e0e0;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

.sample-data table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.sample-data table, .sample-data th, .sample-data td {
    border: 1px solid #dddddd;
}

.sample-data th, .sample-data td {
    padding: 12px;
    text-align: left;
}

.sample-data th {
    background-color: #f2f2f2;
    font-family: var(--font-primary);
}

/* 提示信息 */
.notice {
    text-align: center;
    padding: 20px;
    background: var(--accent-green);
    color: #ffffff;
    font-size: 18px;
    border-radius: 8px;
    margin-bottom: 40px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .header h1 {
        font-size: 32px;
    }
}

@media (max-width: 1200px) {
    .main {
        padding: 80px 20px 40px 20px;
    }
}

@media (max-width: 1024px) {
    .navbar .menu {
        display: none;
    }
    
    .navbar .hamburger {
        display: block;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 20px;
    }

    .header h1 {
        font-size: 24px;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 320px) {
    .navbar .logo {
        font-size: 20px;
    }
    
    .navbar .login-btn {
        padding: 6px 12px;
        font-size: 14px;
    }

    .header h1 {
        font-size: 22px;
    }

    .sample-data h2 {
        font-size: 24px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* 按钮样式 */
.button {
    display: inline-block;
    background: var(--accent-green);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s;
}

.button:hover {
    background: var(--accent-orange);
}

/* 图标样式 */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
}


