:root {
    --primary-color: #3C2A1E;
    --secondary-color: #8B4513;
    --accent-color: #CD853F;
    --light-color: #F5F5DC;
    --dark-color: #2c1a0e;
    --text-color: #333;
    --gray-light: #f8f8f8;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft JhengHei", "Heiti TC", "LiHei Pro", sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
}

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

/* Header Styles */
header {
    background: white;
    color: var(--text-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 3px;
}

nav a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* 导航区域回官网按钮 */
.nav-home-btn {
    display: flex;
    align-items: center;
}

.nav-home-button {
    background: var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.nav-home-button:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Banner */
.banner {
    background: linear-gradient(rgba(60, 42, 30, 0.4), rgba(60, 42, 30, 0.5)), 
                url('images/banner-bg.png') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 2rem;
    scroll-margin-top: 80px; /* 为sticky导航栏预留空间 */
}

.banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.banner p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1.5rem;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    margin-left: 1rem;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Main Content */
.section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    scroll-margin-top: 80px; /* 为sticky导航栏预留空间 */
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 600;
    display: inline-block;
    background-color: white;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background-color: var(--accent-color);
    z-index: 1;
}

/* Regulations */
.regulations-list {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.regulation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.regulation-item:hover {
    background-color: var(--light-color);
}

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

.regulation-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.regulation-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.regulation-actions {
    display: flex;
    gap: 0.8rem;
}

.action-btn {
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-right: 0.5rem;
}

.action-btn a {
    color: white;
    text-decoration: none;
}

.view-btn {
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.download-btn {
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    color: white;
    border: none;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Forms Grid */
.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.form-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-header {
    background: linear-gradient(to right, var(--primary-color), var(--dark-color));
    color: white;
    padding: 1.2rem;
    text-align: center;
}

.form-body {
    padding: 1.5rem;
}

.form-body h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.form-body p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Admissions Tabs */
.admissions-tabs {
    display: flex;
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admissions-tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.admissions-tab.active {
    border-bottom-color: var(--secondary-color);
    color: var(--secondary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.requirement-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 4px solid var(--accent-color);
}

.requirement-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline {
    position: relative;
    padding-left: 20px;
    margin: 2rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    margin-left: 1.5rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 3px solid var(--light-color);
}

.timeline-date {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.timeline-content {
    background-color: var(--light-color);
    padding: 1rem;
    border-radius: 4px;
}

.download-section {
    background: linear-gradient(to right, var(--primary-color), var(--dark-color));
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
}

.download-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.download-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.download-btn-large {
    background-color: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.download-btn-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.contact-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.address {
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content .logo h1 {
    color: white;
    font-size: 1.4rem;
    font-weight: 500;
}

/* Video Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #8B4513);
    color: white;
}

.video-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.video-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-card {
        margin: 0 1rem;
    }
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 500px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.2);
}

/* FAQ Styles */
.faq-container {
    margin-top: 3rem;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #8B4513);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #8B4513, var(--primary-color));
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question i {
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f8f9fa;
}

.faq-answer.active {
    max-height: 200px;
    padding: 1.5rem;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

@media (max-width: 768px) {
    .carousel-wrapper {
        min-height: 300px;
    }
    
    .carousel-slide img {
        max-height: 60vh;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}

.social-icons {
    margin: 1.5rem 0;
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--light-color);
    transform: translateY(-5px);
}

.copyright {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    width: 100%;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .regulations-list {
        margin: 0 -20px;
    }
    
    .regulation-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .regulation-actions {
        width: 100%;
        justify-content: center;
    }
    
    .admissions-tabs {
        gap: 0.5rem;
    }
    
    .admissions-tab {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-home-btn {
        display: none;
    }
    
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        gap: 0;
        display: none;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-color);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav a {
        display: block;
        padding: 1rem;
    }
    
    .mobile-home-link {
        border-top: 1px solid var(--border-color);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    
    .mobile-home-link a {
        background: var(--primary-color);
        color: white;
        margin: 0 1rem;
        border-radius: 4px;
        font-weight: 600;
    }
    
    .banner h2 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .download-btn-large {
        padding: 0.8rem 1.5rem;
    }
    
    .contact-card {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .banner {
        padding: 3rem 1rem;
    }
    
    .banner h2 {
        font-size: 1.6rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    .forms-grid {
        grid-template-columns: 1fr;
    }
    
    .admissions-tab {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
}