/* ===== 公共样式 - common.css ===== */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
}

/* 顶部导航 */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 40px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #1A3A5C;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s;
}

.logo:hover {
    background: #F5F7FA;
    color: #C9A959;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-links a:hover {
    background: #1A3A5C;
    color: #fff;
}

.nav-links a.active {
    background: #1A3A5C;
    color: #fff;
}

/* Banner 区域 */
.banner {
    background: linear-gradient(135deg, #1A3A5C 0%, #2C5F8D 100%);
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 280"><rect fill="%231A3A5C" width="1200" height="280"/><circle cx="100" cy="100" r="80" fill="%232C5F8D" opacity="0.3"/><circle cx="1100" cy="180" r="120" fill="%23C9A959" opacity="0.2"/><circle cx="600" cy="140" r="60" fill="%232C5F8D" opacity="0.4"/></svg>') center/cover no-repeat;
    opacity: 0.5;
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.banner h1 {
    font-size: 36px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 面包屑导航 */
.breadcrumb-wrapper {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb a {
    color: #1A3A5C;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #999;
}

/* 内容区域 */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 通用按钮 */
.btn-submit {
    background: linear-gradient(135deg, #1A3A5C 0%, #2C5F8D 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #2C5F8D 0%, #1A3A5C 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.3);
}

.btn-submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* 底部 */
footer {
    background: #0D2338;
    color: #999;
    padding: 30px 20px;
    text-align: center;
    font-size: 14px;
}

footer a {
    color: #999;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}

/* 汉堡菜单按钮 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1A3A5C;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
    background: #C9A959;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
    background: #C9A959;
}

/* 移动端导航 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px 0;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: #F5F7FA;
    color: #1A3A5C;
    border-left-color: #C9A959;
}


/* 响应式 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .banner h1 {
        font-size: 28px;
    }

    .banner {
        height: 200px;
    }

    .nav-container {
        padding: 10px 15px;
        gap: 20px;
        justify-content: space-between;
    }

    .logo {
        font-size: 18px;
        padding: 6px 12px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .content {
        padding: 20px 15px;
    }

    footer {
        padding: 20px 15px;
        font-size: 12px;
    }
}
