/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #f5f7fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 添加微妙的背景纹理 */
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(52, 152, 219, 0.03) 1px, transparent 0),
        radial-gradient(circle at 2px 2px, rgba(46, 204, 113, 0.02) 1px, transparent 0);
    background-size: 30px 30px;
}

/* 全局渐变变量 */
:root {
    --primary-gradient: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    --card-gradient: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    --text-gradient: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    --banner-gradient: linear-gradient(135deg, rgba(52, 152, 219, 0.95) 0%, rgba(46, 204, 113, 0.95) 100%);
    --shadow-light: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 15px 40px rgba(0, 0, 0, 0.16);
    --shadow-card: 0 8px 32px rgba(52, 152, 219, 0.15);
    --border-radius-small: 10px;
    --border-radius-medium: 18px;
    --border-radius-large: 24px;
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --color-primary: #3498db;
    --color-secondary: #2ecc71;
    --color-accent: #f39c12;
    --color-text-dark: #2c3e50;
    --color-text-medium: #555;
    --color-text-light: #7f8c8d;
    --color-bg-light: #f5f7fa;
    --color-bg-white: #ffffff;
    --color-border-light: rgba(52, 152, 219, 0.2);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 26px;
    color: #3498db;
    font-weight: 700;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    text-decoration: none;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav ul li a:hover {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.08);
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 12px;
    width: calc(100% - 24px);
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav ul li a:hover::after {
    transform: scaleX(1);
}

/* 首页横幅 */
.banner {
    background: var(--banner-gradient);
    color: #fff;
    padding: 140px 0 100px;
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(52, 152, 219, 0.2);
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255,255,255,0.08) 0%, transparent 50%);
    z-index: 1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(1deg); }
    50% { transform: scale(1) rotate(0deg); }
    75% { transform: scale(0.95) rotate(-1deg); }
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.banner-content h2 {
    font-size: 52px;
    margin-bottom: 25px;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.banner-content p {
    font-size: 22px;
    margin-bottom: 50px;
    opacity: 0.95;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.banner-actions {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 15px 35px;
    margin: 0;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    color: #3498db;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16), 0 4px 20px rgba(0, 0, 0, 0.12);
    color: #2980b9;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16), 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* 报名查询 */
.query-section {
    background-color: #fff;
    padding: 60px 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.query-content h3 {
    text-align: center;
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
}

.query-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.province-select {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    width: 300px;
    transition: all 0.3s ease;
}

.province-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.submit__click {
    margin: 0;
}

/* 关于我们 */
.about-section {
    padding: 80px 0;
}

.about-section h3 {
    text-align: center;
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--card-gradient);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 280px;
    justify-content: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-gradient);
    border-radius: 20px 20px 0 0;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(52, 152, 219, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(46, 204, 113, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-heavy), 0 20px 60px rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
}

.feature-card h4 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.feature-card p {
    color: #555;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    font-size: 16px;
    padding: 0 10px;
}

/* 报名条件 */
.conditions-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.conditions-section h3 {
    text-align: center;
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
}

.conditions-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.condition-card {
    background: var(--card-gradient);
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.condition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-gradient);
    border-radius: 20px 20px 0 0;
}

.condition-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(52, 152, 219, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(46, 204, 113, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.condition-card:hover::after {
    opacity: 1;
}

.condition-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-heavy), 0 20px 60px rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
}

.condition-card h4 {
    font-size: 26px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid rgba(52, 152, 219, 0.2);
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.condition-card ul {
    list-style: none;
    position: relative;
    z-index: 1;
}

.condition-card ul li {
    padding: 15px 0;
    padding-left: 35px;
    position: relative;
    color: #444;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    line-height: 1.7;
}

.condition-card ul li:last-child {
    border-bottom: none;
}

.condition-card ul li:hover {
    padding-left: 40px;
    color: #2c3e50;
}

.condition-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
    font-size: 20px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(46, 204, 113, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 2px;
}

.condition-card ul li:hover::before {
    background-color: rgba(46, 204, 113, 0.2);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

/* 报考时间 */
.exam-time-section {
    background-color: #fff;
    padding: 80px 0;
}

.exam-time-section h3 {
    text-align: center;
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
}

.exam-time-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.exam-announcements h4,
.exam-schedule h4 {
    font-size: 24px;
    color: #3498db;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.announcement-list {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.announcement-item {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item:hover {
    background-color: #e9ecef;
    padding-left: 25px;
}

.announcement-title {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.5;
}

.announcement-date {
    font-size: 14px;
    color: #7f8c8d;
}

.schedule-content {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.schedule-item {
    padding: 25px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item:hover {
    background-color: #e9ecef;
}

.schedule-period {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #bdc3c7;
}

.schedule-details p {
    margin-bottom: 10px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.schedule-details p strong {
    color: #3498db;
}

/* 联系我们 */
.contact-section {
    padding: 80px 0;
    background-color: #fff;
}

.contact-section h3 {
    text-align: center;
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
}

.contact-content {
    text-align: center;
}

.contact-info p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    opacity: 0.8;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 25px 75px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}

.close:hover,
.close:focus {
    color: white;
    background-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
    text-align: center;
}

#modalText {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.8;
}

.qrcode {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.qrcode img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.qrcode img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 登录表单样式 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.form-group {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group::before {
    content: '';
    position: absolute;
    left: 15px;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
}

.form-group.user::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
}

.form-group.pass::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
}

.form-input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.form-button {
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.form-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.form-button:active {
    transform: translateY(0);
}

.form-footer {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.form-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #2ecc71;
    text-decoration: underline;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav ul li {
        margin: 0 15px;
    }

    .banner-content h2 {
        font-size: 36px;
    }

    .banner-content p {
        font-size: 18px;
    }

    .query-form {
        flex-direction: column;
        width: 100%;
    }

    .province-select {
        width: 100%;
    }

    .exam-time-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .conditions-content {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 30% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .banner-content h2 {
        font-size: 28px;
    }

    .btn {
        display: block;
        width: 80%;
        margin: 10px auto;
    }

    .feature-card,
    .condition-card {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .qrcode img {
        width: 150px;
        height: 150px;
    }
}