/* ===== 基础样式 ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    font-weight: 400;
}

/* ===== 标题字体 ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    font-weight: 600;
}

h1 {
    font-weight: 700;
}

/* ===== 导航栏样式 ===== */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-nav .nav-link {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    font-weight: 500;
}

/* ===== 按钮字体 ===== */
.btn {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    font-weight: 500;
}

/* ===== 表单字体 ===== */
.form-label {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    font-weight: 500;
}

/* ===== 页脚组件样式 ===== */
.tjh-footer {
    background-color: #212529;
    color: #f8f9fa;
    padding: 2rem 0;
    text-align: center;
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
}

.tjh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tjh-beian {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tjh-beian a {
    color: #f8f9fa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 400;
}

.tjh-beian img {
    width: 16px;
    height: 16px;
}

/* ===== 代码块样式 ===== */
.code-block {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.85em;
    line-height: 1.4;
    overflow-x: auto;
}

.code-block code {
    background: none;
    padding: 0;
    color: #495057;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ===== 复制按钮样式 ===== */
.copy-btn {
    transition: all 0.2s ease;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 库卡片样式 */
#libraries .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
}

#libraries .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#libraries .card-title {
    color: #495057;
    font-weight: 600;
}

#libraries .card-text {
    color: #6c757d;
    font-size: 0.9em;
}

/* 联系卡片样式 */
.contact-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 40px 30px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background: #ffffff;
}

.contact-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 10px;
}

.contact-card h4 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-card .btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-card .btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tjh-beian {
        flex-direction: column;
        gap: 0.8rem;
    }
}