/* 全局样式重置 - 轻量级 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部导航优化 */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}

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

.logo a {
    font-size: 20px;
    font-weight: 700;
    color: #4285f4;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo a:before {
    content: "📘";
    font-size: 24px;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.nav a:hover {
    color: #4285f4;
    background: rgba(66, 133, 244, 0.1);
}

/* 主内容区域 */
.main {
    min-height: calc(100vh - 120px);
    padding: 20px 0 40px;
}

/* 基础卡片样式 */
.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

/* 基础按钮 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 15px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #4285f4;
    color: white;
}

.btn-primary:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* 表单样式简化 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* 页脚 */
.footer {
    background: #f8f9fa;
    padding: 30px 0;
    border-top: 1px solid #eaeaea;
    text-align: center;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav a {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .main {
        padding: 15px 0 30px;
    }
    
    .card {
        padding: 20px 16px;
    }
    
    .btn {
        padding: 10px 20px;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 18px;
    }
    
    .nav {
        gap: 8px;
    }
    
    .nav a {
        font-size: 13px;
        padding: 5px 8px;
    }
}