/* 全局样式 */
body {
    font-family: 'Inter', 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Hiragino Sans GB', 'SimHei', sans-serif;
    color: #000;
    line-height: 1.6;
    background-color: #fff;
}

/* 响应式调整 */
@media (min-width: 992px) {
    .icon-section-lg {
        margin-left: -40px;
    }
}

/* 顶部导航栏 */
.navbar {
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff !important;
}

.navbar-brand {
    font-weight: 600;
    color: #000 !important;
}

.nav-link {
    color: #333 !important;
    font-weight: 400;
}

.nav-link:hover,
.nav-link.active {
    color: #000 !important;
    text-decoration: none;
}

/* 主标题区域 */
header {
    background: #fff;
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
}

header h1 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
}

header .btn-light {
    font-weight: 500;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #000;
}

/* 卡片样式 */
.card {
    border-radius: 3px;
    box-shadow: none;
    transition: all 0.2s ease;
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
}

.card:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-header {
    border-top-left-radius: 3px !important;
    border-top-right-radius: 3px !important;
    background-color: #000 !important;
    color: #fff !important;
    font-weight: 500;
    padding: 0.8rem 1rem;
}

/* 图标样式 */
.bi {
    display: inline-block;
    vertical-align: -0.125em;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1.2rem;
    border-radius: 3px !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
}

/* 首页大按钮样式 */
.btn-lg.btn-primary {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    border-radius: 3px !important;
    transition: all 0.2s ease;
}

.btn-lg.btn-primary:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: #000 !important;
    border-color: #e0e0e0 !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover {
    background-color: #f5f5f5 !important;
    border-color: #e0e0e0 !important;
    color: #000 !important;
}

.btn-outline-secondary {
    color: #000;
    border-color: #e0e0e0;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    color: #000;
}

.btn-outline-danger {
    color: #000;
    border-color: #e0e0e0;
}

.btn-outline-danger:hover {
    background-color: #fff0f0;
    border-color: #f5d7d7;
    color: #d00;
}

/* 计算器样式 */
#question-container {
    transition: all 0.2s ease;
}

#options-container button {
    transition: all 0.2s ease;
    text-align: left;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #000;
    margin-bottom: 0.5rem;
    position: relative;
    border-radius: 3px;
}

#options-container button:hover {
    background-color: #f9f9f9;
    border-color: #ccc;
}

#options-container button .bi {
    position: absolute;
    right: 1rem;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

#options-container button .bi-circle {
    color: #999;
}

#options-container button .bi-check-circle-fill {
    color: #000;
}

#options-container button.selected {
    background-color: #f0f0f0;
    border-color: #999;
    font-weight: 500;
}

#question-text {
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.question-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.question-subtext {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* 进度条样式 */
.progress {
    height: 0.4rem;
    border-radius: 3px;
    background-color: #f5f5f5;
    border: none;
}

.progress-bar {
    background-color: #000;
    transition: width 0.3s ease;
}

/* 结果样式 */
#result-container .alert {
    border-radius: 3px;
    padding: 1.2rem;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

#result-container ul {
    margin-bottom: 1rem;
}

#result-container li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

#result-container li::before {
    content: "–";
    position: absolute;
    left: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    header {
        padding: 2rem 0;
    }

    .card-body {
        padding: 1.25rem;
    }

    #options-container button {
        padding: 0.6rem 0.8rem;
    }
}

/* 页脚样式 */
footer {
    background-color: #f5f5f5;
    color: #333;
    border-top: 1px solid #e0e0e0;
}

footer h5 {
    color: #000;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer p {
    color: #333;
    margin-bottom: 0.5rem;
}

footer hr {
    border-color: #e0e0e0;
}

/* 知识页面样式 */
.knowledge-section h2 {
    color: #000;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.knowledge-section h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #000;
}

.knowledge-card {
    border-left: 3px solid #000;
    background-color: #f9f9f9;
    padding: 1.2rem;
    margin-bottom: 2rem;
    border-radius: 0 3px 3px 0;
}

/* 联系页面样式 */
.contact-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #000;
}

.contact-form .form-control {
    border-radius: 3px;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
}

.contact-info i {
    color: #000;
    margin-right: 0.5rem;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notion 风格元素 */
.notion-container {
    position: relative;
}

.notion-highlight {
    background-color: rgba(255, 212, 0, 0.14);
    padding: 0 2px;
}

.notion-box {
    position: relative;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    background-color: #f9f9f9;
    margin-bottom: 1rem;
}

/* hand-drawn-box 内的段落文本样式 */
.hand-drawn-box p {
    font-size: 0.88rem;
    font-style: italic;
    color: #666;
}

/* hand-drawn-box 内的标题样式 */
.hand-drawn-box h5 {
    font-size: 1.1rem;
    /* font-style: italic; */
    color: #666;
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 2px solid rgba(0, 123, 255, 0.5);
    margin-bottom: 12px;
}

.notion-callout {
    padding: 16px;
    border-radius: 3px;
    background-color: #f1f1f1;
    display: flex;
    margin-bottom: 1rem;
}

.notion-callout-icon {
    margin-right: 8px;
}