/* 组件样式 */

/* 导航栏组件 */
#navbar {
    background-color: rgba(45, 106, 79, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}

/* 移动端菜单 */
#mobileMenu {
    background-color: rgba(45, 106, 79, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* 页脚组件 */
footer {
    background-color: #2D6A4F;
    color: white;
    padding: 2.5rem 0;
    margin-top: 4rem;
}

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

/* 卡片组件 */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

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

/* 按钮组件 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #2D6A4F;
    color: white;
}

.btn-primary:hover {
    background-color: #1B4332;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.btn-secondary {
    background-color: #D9AE79;
    color: white;
}

.btn-secondary:hover {
    background-color: #B78943;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 174, 121, 0.3);
}

/* 表单组件 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2C3333;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #2D6A4F;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: #666;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: #999;
}

.breadcrumb a {
    color: #2D6A4F;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #D9AE79;
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(45, 106, 79, 0.1);
    border-left-color: #2D6A4F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 错误提示 */
.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    color: #DC3545;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* 成功提示 */
.success-message {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

/* 警告提示 */
.warning-message {
    background-color: rgba(255, 193, 7, 0.1);
    color: #FFC107;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 193, 7, 0.2);
}
