/* 
 * 成人高考招生简章网站样式表
 * 参考"夸克高考"简洁风格
 */

/* CSS变量定义 */
:root {
    --primary-color: #4A90E2;
    --primary-dark: #357ABD;
    --success-color: #52C41A;
    --warning-color: #FAAD14;
    --danger-color: #FF4D4F;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F7FA;
    --border-color: #E8E8E8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 头部导航 */
.header {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 1.5rem;
}

.btn-primary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 幻灯片模块 */
.slider-section {
    background: white;
    margin-bottom: 12px;
    padding: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 300px;
}

/* 电脑端幻灯片自适应 */
@media (min-width: 769px) {
    .slider-container {
        max-width: 1200px;
        border-radius: 8px;
        margin: 0 auto;
    }
    
    .slider-section {
        padding: 12px 0;
    }
    
    .slide img {
        width: 100%;
        height: 350px;
        max-height: 350px;
        object-fit: cover;
        border-radius: 8px;
    }
}

/* 移动端幻灯片 */
@media (max-width: 768px) {
    .slider-container {
        border-radius: 0;
    }
    
    .slide img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
}

.slide-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #F0F4F8 0%, #E8EDF2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.slide-placeholder i {
    font-size: 3rem;
    margin-bottom: 8px;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    width: 20px;
    border-radius: 4px;
}

/* 功能按钮模块 */
.quick-links {
    background: white;
    padding: 20px 0;
    margin-bottom: 12px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.quick-link-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.icon-box.blue {
    background: rgba(74, 144, 226, 0.1);
    color: #4A90E2;
}

.icon-box.green {
    background: rgba(82, 196, 26, 0.1);
    color: #52C41A;
}

.icon-box.orange {
    background: rgba(250, 173, 20, 0.1);
    color: #FAAD14;
}

.icon-box.purple {
    background: rgba(114, 46, 209, 0.1);
    color: #722ED1;
}

.quick-link-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* 学校列表模块 */
.schools-section {
    background: white;
    padding: 24px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.section-header h2 i {
    color: var(--primary-color);
}

.subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
}

.schools-waterfall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.school-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.school-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.school-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder {
    color: var(--text-light);
    font-size: 1.5rem;
}

.school-info {
    flex: 1;
    min-width: 0;
}

.school-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.school-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-type {
    background: rgba(74, 144, 226, 0.1);
    color: #4A90E2;
}

.tag-category {
    background: rgba(114, 46, 209, 0.1);
    color: #722ED1;
}

.school-arrow {
    color: var(--text-light);
    transition: all 0.3s;
}

.school-card:hover .school-arrow {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* 浮动按钮 - 已隐藏 */
.floating-btn {
    display: none;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), #5a7ff5);
    color: white;
    padding: 12px 32px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(79, 108, 255, 0.3);
    transition: all 0.3s ease;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 108, 255, 0.4);
}

/* 页脚 */
.footer {
    background: white;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
}

.footer p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .schools-waterfall {
        grid-template-columns: 1fr;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .btn-primary {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    .section-header h2 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .slide img {
        max-height: 200px;
    }
    
    .quick-link-item {
        padding: 12px 6px;
    }
    
    .icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* 静态页面样式 */
.page-container {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.page-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-color);
}

.page-content {
    line-height: 1.8;
}

.page-content h3 {
    margin: 20px 0 10px;
    color: var(--text-primary);
}

.page-content p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

/* 学校详情页样式 */
.school-detail-header {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.school-detail-logo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    margin: 0 auto 16px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.school-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.school-detail-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.school-detail-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.school-detail-tags .tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 20px;
    font-size: 14px;
}

/* PC端学校详情页 */
@media (min-width: 769px) {
    .school-detail-header {
        padding: 60px 20px;
    }
    
    .school-detail-logo {
        width: 120px;
        height: 120px;
    }
    
    .school-detail-name {
        font-size: 2.2rem;
    }
    
    .school-detail-tags .tag {
        padding: 8px 16px;
        font-size: 15px;
    }
}

.school-detail-section {
    background: white;
    margin: 12px 16px;
    border-radius: var(--radius-md);
    padding: 20px;
}

/* PC端学校详情区域 */
@media (min-width: 769px) {
    .school-detail-section {
        margin: 16px auto;
        max-width: 1000px;
        padding: 24px 32px;
    }
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--primary-color);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    margin-right: 12px;
    margin-bottom: 8px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.major-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
    flex-wrap: wrap;
}

.major-tab {
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.major-tab.active {
    background: var(--primary-color);
    color: white;
}

.major-list {
    display: none;
}

.major-list.active {
    display: block;
}

/* PC端专业列表样式 */
@media (min-width: 769px) {
    .major-list:not(.active) {
        display: none;
    }
    
    .major-list.active {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .major-item {
        background: var(--bg-secondary);
        border-radius: 12px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        transition: all 0.3s;
        border: 1px solid var(--border-color);
    }
    
    .major-item:hover {
        border-color: var(--primary-color);
        box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
    }
    
    .major-name {
        font-size: 18px;
        font-weight: 600;
        color: var(--text-primary);
        white-space: normal;
        line-height: 1.4;
    }
    
    .major-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        font-size: 14px;
    }
    
    .major-tag {
        display: inline-block;
        padding: 4px 10px;
        background: rgba(74, 144, 226, 0.1);
        color: var(--primary-color);
        border-radius: 6px;
        font-size: 13px;
    }
    
    .major-duration, .major-tuition {
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--text-secondary);
    }
    
    .major-duration i, .major-tuition i {
        color: var(--primary-color);
    }
}

/* 移动端专业列表样式 */
@media (max-width: 768px) {
    .major-list {
        display: none;
    }
    
    .major-list.active {
        display: block;
    }
    
    .major-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
        gap: 12px;
    }
    
    .major-item:last-child {
        border-bottom: none;
    }
    
    .major-name {
        font-size: 16px;
        font-weight: 500;
        color: var(--text-primary);
        flex-shrink: 0;
    }
    
    .major-meta {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .major-tag {
        display: inline-block;
        padding: 2px 6px;
        background: rgba(74, 144, 226, 0.1);
        color: var(--primary-color);
        border-radius: 2px;
        font-size: 9px;
    }
    
    .major-duration, .major-tuition {
        display: flex;
        align-items: center;
        gap: 2px;
        color: var(--text-secondary);
        white-space: nowrap;
    }
}

/* 表单样式 */
.form-container {
    max-width: 600px;
    margin: 20px auto;
    background: white;
    border-radius: var(--radius-md);
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 4px;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 16px;
}

.form-success h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-secondary);
}

/* 信息卡片样式（百度百科、官网链接） */
.info-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s;
    border-bottom: 1px solid var(--border-color);
}

.info-card:last-child {
    border-bottom: none;
}

.info-card:hover {
    background: #fafafa;
}

.info-card-left {
    flex-shrink: 0;
    margin-right: 12px;
}

.info-badge {
    display: inline-block;
    background: #4A90E2;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border-radius: 50%;
    color: #666;
    font-size: 1rem;
}

.info-card-content {
    flex: 1;
    min-width: 0;
}

.info-card-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.info-card-text strong {
    color: var(--text-primary);
}

.info-card-arrow {
    flex-shrink: 0;
    color: #ccc;
    margin-left: 12px;
    transition: transform 0.3s, color 0.3s;
}

.info-card:hover .info-card-arrow {
    color: var(--primary-color);
    transform: translateX(4px);
}
