:root {
    --primary-color: #771f00;
    --secondary-color: #a33c1a;
    --light-color: #f9f2ee;
    --dark-color: #3a0f00;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a {color: var(--primary-color); text-decoration: none}
a:hover {color: var(--secondary-color);}
/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.logo-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    padding: 14px 0;
    display: flex;
    align-items: center;
}
.logo.nonav {
     padding: 11px 0;
 }

.logo h1 {
    font-weight: 700;
    margin: 0;
    font-size: 2rem;
    letter-spacing: 1px;
}

.logo .highlight {
    color: #ffd8b1;
}

.logo.nonav h1 {
    font-size: 20px;
}

.banner {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="200" viewBox="0 0 1200 200"><rect width="1200" height="200" fill="%23771f00"/><path d="M0,100 Q300,50 600,100 T1200,100 L1200,200 L0,200 Z" fill="%23a33c1a"/></svg>') center/cover;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
    margin-bottom: 1px;
}

.banner-content {
    max-width: 800px;
}

.banner h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 0;
}

.banner p {
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.btn-custom {
    background-color: #ffd8b1;
    color: var(--primary-color);
    border: none;
    padding: 6px 20px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-custom:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    color: var(--primary-color);
}

/* 导航菜单 */
.navbar-custom {
    background-color: var(--secondary-color);
    padding: 0;
}

.navbar-custom .navbar-nav .nav-link {
    color: white;
    font-weight: 500;
    padding: 12px 45px;
    transition: all 0.3s;
    position: relative;
}

.navbar-custom .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}
.navbar-custom .navbar-nav .nav-link.active {
    background-color: var(--primary-color);/*rgba(255, 255, 255, 0.15);*/
}

.navbar-custom .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background: #ffd8b1;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.navbar-custom .navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

/* 主体内容 */
main {
    flex: 1;
    padding: 40px 0;
}

/* 页脚样式 */
footer {
    background: linear-gradient(to right, var(--dark-color), var(--primary-color));
    color: white;
    padding: 30px 0 10px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #ffd8b1;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffd8b1;
}

.contact-info {
    color: #ddd;
}

.contact-info i {
    width: 24px;
    color: #ffd8b1;
    margin-right: 10px;
}

.copyright {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

.btn-submit {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s;
    font-size: 1.1rem;
    width: 100%;
    cursor: pointer;
    text-align: center;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(119, 31, 0, 0.3);
    color: #ffd8b1;
}
/*card*/
.card-action {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(119, 31, 0, 0.15);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    transition: all 0.4s;
}
.card-action:hover {
    box-shadow: 0 20px 40px rgba(119, 31, 0, 0.2);
}
.card-action .header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    padding: 30px;
    text-align: center;
}

.card-action .header h2 {
    font-weight: 700;
    margin: 0;
    font-size: 1.8rem;
}

.card-action .header p {
    opacity: 0.9;
    margin-top: 10px;
    margin-bottom: 0;
}

.card-action .body {
    padding: 30px;
}

/*form item*/
.form-label {
    font-weight: 600;
    color: #555;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(119, 31, 0, 0.25);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .banner h2 {
        font-size: 2rem;
    }
    .banner p {
        font-size: 1.1rem;
    }

    .logo h1 {
        font-size: 1.8rem;
    }
    .btn-custom {
        padding: 6px 20px;
        border-radius: 20px;
        font-size: 1.1rem;
    }
}

/* 详情页样式 */
.detail-header {
    background: linear-gradient(to right, var(--dark-color), var(--primary-color));
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.detail-title {
    font-weight: 700;
    margin-bottom: 15px;
}

.detail-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    font-size: 0.9rem;
}

.detail-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
}

.detail-content h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size:18px;
}
.detail-content h4 {
    color: var(--primary-color);
    margin-top: 10px;
    margin-bottom: 5px;
    font-size:16px;
    font-weight: bold;
}
.detail-content p {
    margin-bottom: 15px;
}