/* 现代化样式文件 */
:root {
    --primary-color: #02345a;
    --secondary-color: #02345a;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-dark: #1e293b;
    --white: #ffffff;
    --shadow: 0 7px 14px rgba(50, 50, 93, 0.1),
        0 3px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a:hover {
    color: var(--white);
}

a:focus {
    color: var(--white);
    text-decoration: none;
    outline: none;
}

/* 菜單打開時防止背景滾動 */
body.menu-open {
    overflow: hidden !important;
}

body.menu-open .header {
    background: rgba(2, 52, 90, 0.9);
    backdrop-filter: blur(10px);
}

/* 头部样式 */
.header {
    background: transparent;
    box-shadow: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateY(-100%);
}

.header.header-visible {
    transform: translateY(0);
    background: rgba(2, 52, 90, 0);
    /* backdrop-filter: blur(10px); */
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

.header.header-scroll {
    background: rgba(2, 52, 90, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 15px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-nav-left,
.header-nav-right {
    display: flex;
    align-items: center;
}

.header-nav-left ul,
.header-nav-right ul {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
}

.header-nav-left ul li,
.header-nav-right ul li {
    list-style: none;
    padding: 6px 15px;
}

.header-nav-left ul li a,
.header-nav-right ul li a {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
    position: relative;
}

.header-nav-left ul li a:hover::after,
.header-nav-left ul li a.active::after,
.header-nav-right ul li a:hover::after,
.header-nav-right ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.header-logo {
    width: 110px;
    height: auto;
    flex-shrink: 0;
    cursor: pointer;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0) invert(1);
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/banner.jpg') center/cover;
    opacity: 0.5;
    z-index: 1;
}

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

.hero-title {
    font-size: 53px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-motto {
    font-size: 21px;
    margin-bottom: 10px;
    opacity: 0.8;
    font-style: italic;
    margin-top: 60px;
}

.hero-motto-en {
    font-size: 13px;
    margin-bottom: 30px;
    opacity: 0.7;
    font-style: italic;
}

.hero-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    font-size: 17px;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}


.title-wrapper {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.title-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -20px;
    width: 5px;
    height: 70%;
    border-radius: 0 3px 3px 0;
    background-color: var(--primary-color);
}

.title {
    font-size: 22px;
    font-weight: 600;
}

.more a {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 400;
}



/* 主要内容区域 */
.main {
    position: relative;
    z-index: 3;
    background: var(--white);
}

.main-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 30px 0px;
}

.main-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 卡片样式 */
.card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 24px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.card-text {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.card-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* 章节标题 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.section-title p {
    font-size: 20px;
    color: var(--text-light);
    margin: 0 auto;
}

/* Footer 樣式 */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    gap: 20px;
    flex-direction: column;
    width: 100%;
}

.footer-logo img {
    width: 150px;
    height: auto;
    object-fit: contain;
}

.footer-logo-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--white);
}

.footer-logo-text p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin: 2px 0;
}

.footer-nav h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--white);
    position: relative;
}

.footer-nav h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-nav ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.footer-links-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-grid ul li {
    margin-bottom: 12px;
}

.footer-links-grid ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links-grid ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}


.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.copyright-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0;
}

.copyright-content a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.contact-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.back-to-top {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

/* Footer 響應式設計 */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding: 0 20px;
    }

    .footer-logo {
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .footer-logo img {
        width: 120px;
    }

    .footer-logo-text h3 {
        font-size: 18px;
    }

    .footer-logo-text p {
        font-size: 14px;
    }

    .footer-nav {
        text-align: left;
    }

    .footer-nav h4 {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .footer-nav h4::after {
        left: 15px;
        transform: translateX(-50%);
    }

    .footer-links-grid {
        gap: 15px;
        justify-items: flex-start;
    }

    .footer-links-grid ul {
        text-align: center;
    }

    .footer-links-grid ul li {
        margin-bottom: 10px;
    }

    .footer-links-grid ul li a {
        font-size: 14px;
    }

    .footer-nav ul li {
        margin-bottom: 10px;
    }

    .footer-nav ul li a {
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: wrap;
        word-break: break-word;
    }

    .contact-icon {
        width: 16px;
        height: 16px;
        margin-right: 0;
        flex-shrink: 0;
    }

    .contact-icon svg {
        width: 16px;
        height: 16px;
    }

    .copyright-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 0 20px;
    }

    .copyright-content p {
        font-size: 12px;
        line-height: 1.5;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        position: relative;
        right: auto;
        bottom: auto;
        margin: 0 auto;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }

    .page-hero {
        padding: 100px 0 80px !important;
    }

    .hero-title {
        font-size: 28px !important;
    }

    .hero-subtitle {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }

    .section-header{
        margin-bottom: 30px !important;
    }

    .section-header h2 {
        font-size: 28px !important;
    }

    .section-header p {
        font-size: 16px !important;
    }
}

/* 小屏幕设备footer样式 */
@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }

    .footer-container {
        padding: 0 15px;
        gap: 25px;
    }

    .footer-logo img {
        width: 110px;
    }

    .footer-logo-text h3 {
        font-size: 17px;
    }

    .footer-logo-text p {
        font-size: 13px;
    }

    .footer-nav h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .footer-links-grid ul li a,
    .footer-nav ul li a {
        font-size: 13px;
    }

    .footer-nav ul li a {
        padding: 8px 0;
        line-height: 1.4;
        font-size: 15px;
    }

    .copyright-content {
        padding: 0 15px;
    }

    .copyright-content p {
        font-size: 12px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
    }

    .back-to-top svg {
        width: 16px;
        height: 16px;
    }
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 998;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 移动端导航菜单 */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(2, 52, 90, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-container {
    padding: 20px;
    /* height: 100%; */
    display: flex;
    flex-direction: column;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
    margin-bottom: 15px;
}

.mobile-logo {
    width: 100px;
    height: auto;
}

.mobile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0) invert(1);
}

.mobile-menu-close {
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
}

.mobile-menu-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    border-radius: 1px;
}

.mobile-menu-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu ul li {
    margin-bottom: 15px;
}

.mobile-nav-menu ul li a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-menu ul li a:hover,
.mobile-nav-menu ul li a.active {
    color: var(--accent-color);
    padding-left: 10px;
}

.mobile-nav-menu ul li a span {
    display: block;
}

.mobile-social-links{
    margin-top: 15px;
    margin-bottom: 20px;
}
.mobile-social-links ul{
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.mobile-social-links ul li{
    display: flex;
    gap: 10px;
    align-items: center;
}   

.mobile-social-links ul li a{
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: var(--white);
}

.mobile-social-links ul li a svg{
    width: 20px;
    height: 20px;
    margin-right: 0;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        height: 80px;
        padding: 0 20px;
        justify-content: space-between;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-nav-left,
    .header-nav-right {
        display: none;
    }

    .header-logo {
        width: 80px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-section {
        height: 100vh;
        padding: 20px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-motto {
        font-size: 15px;
        margin-top: 30px;
    }

    .hero-motto-en {
        font-size: 14px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* 移动端内容调整 */
    .main-container {
        padding: 0 15px;
    }

    .about-container {
        flex-direction: column;
        gap: 30px;
    }
/* 
    .about-image {
        width: 100%;
        height: 250px;
    } */
    .section-title h2{
        font-size: 30px;
    }
    .section-title p{
        font-size: 17px;
    }

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

    .featured-card {
        flex-direction: column;
    }

    .featured-img {
        width: 100%;
        height: 200px;
    }

    .activity-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-container {
        flex-direction: column;
        gap: 30px;
    }

    .contact-left,
    .contact-right {
        width: 100%;
    }
}

/* 小屏幕设备 */
@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 11px;
    }

    .mobile-nav-container {
        padding: 15px;
        padding-bottom: 60px;
    }

    .mobile-nav-menu ul li a {
        font-size: 16px;
        padding: 12px 0;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.success-message,
.error-message {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

.success-message {
    background: #10b981;
}

.error-message {
    background: #ef4444;
}

.error {
    border-color: #ef4444 !important;
}

.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-content .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.card.hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.fade-in-up.animate {
    animation: fadeInUp 0.8s ease-out forwards;
}