/* 通用样式表 */
:root {
    --primary-color: #4e73df;
    --secondary-color: #1cc88a;
    --danger-color: #e74a3b;
    --dark-color: #5a5c69;
    --light-color: #f8f9fc;
}

body {
    font-family: "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 通用间距调整 */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.navbar-brand img {
    transition: transform 0.3s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7579e7 100%);
    color: white;
    position: relative;
}

.gradient-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.gradient-bg > .container {
    position: relative;
    z-index: 2;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.15);
}

/* 图标样式 */
.card i, .principle-item i, .process-step i {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
}

/* 按钮样式更新 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    background-color: #3a5cca;
    border-color: #3a5cca;
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-light {
    color: var(--primary-color);
    background-color: white;
    border-color: white;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-light:hover {
    background-color: #f8f9fa;
    color: #3a5cca;
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
}

.back-to-top i {
    font-size: 1.5rem;
}

/* 快捷导航栏增强 */
.quick-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border-radius: 30px;
    box-shadow: 0 0.5rem 1.5rem 0 rgba(58, 59, 69, 0.15);
    padding: 15px 10px;
    z-index: 99;
    transition: all 0.3s ease;
}

.quick-nav:hover {
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.25);
}

.quick-nav ul {
    margin: 0;
    padding: 0;
}

.quick-nav li {
    padding: 10px 15px;
    text-align: center;
    position: relative;
}

.quick-nav li:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.quick-nav a {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: block;
    font-weight: 500;
}

.quick-nav a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* 页脚样式 */
.footer {
    background-color: #343a40;
}

.footer-buttons button {
    margin: 5px;
    font-size: 0.8rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .banner-btns .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Toast提示样式 */
.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 交互按钮样式 */
.like-btn, .favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.like-btn i, .favorite-btn i {
    margin-right: 5px;
    font-size: 1.2rem;
}

.like-btn:hover, .favorite-btn:hover {
    color: var(--primary-color);
}

.like-btn.liked {
    animation: pulse 0.5s ease;
}

.favorite-btn.active i {
    color: var(--danger-color);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 字体大小控制按钮 */
.font-size-controls {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fc;
    border-radius: 5px;
    padding: 5px;
}

.font-size-control {
    border: none;
    background: none;
    font-size: 1.2rem;
    padding: 5px 10px;
    cursor: pointer;
    color: var(--dark-color);
}

.font-size-control:hover {
    color: var(--primary-color);
} 