
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* 工具类 */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-1 {
    flex: 1;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.bg-white {
    background-color: white;
}

.rounded {
    border-radius: 4px;
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-md {
    border-radius: 6px;
}

.rounded-full {
    border-radius: 9999px;
}

.overflow-hidden {
    overflow: hidden;
}

.shadow-md {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.transition-all {
    transition: all 0.3s ease;
}

.duration-300 {
    transition-duration: 300ms;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.h-auto {
    height: auto;
}

.h-screen {
    height: 100vh;
}

.min-h-screen {
    min-height: 100vh;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* 自定义颜色 */
.text-primary {
    color: #D39B2C;
}

.bg-primary {
    background-color: #D39B2C;
}

.bg-primary-light {
    background-color: #FFE7B3;
}

.bg-primary-gradient {
    background: linear-gradient(to bottom, #FFE7B3, #F6C462);
}

.bg-primary-gradient-nav {
    background: linear-gradient(to bottom, #F6C462, #EDBC5D, #E1B257);
}

.border-primary {
    border-color: #D39B2C;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-700 {
    color: #374151;
}

.border-gray-300 {
    border-color: #d1d5db;
}

/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar {
    background: linear-gradient(to bottom, #FFE7B3, #F6C462);
    padding: 0.5rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 120px;
}

.subtitle {
    width: 187px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-bar {
    background: linear-gradient(to bottom, #F6C462, #EDBC5D, #E1B257);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 0.75rem;
    color: white;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover {
    font-weight: 600;
}

.dropdown-icon {
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #374151;
    font-size: 0.875rem;
    white-space: nowrap;
}

.dropdown-item:hover {
    color: #D39B2C;
    background-color: #f8f8f8;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    position: relative;
}

.search-input {
    width: 200px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 9999px;
    color: white;
    font-size: 0.875rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.search-input:focus {
    outline: none;
    border-color: white;
}

.search-icon {
    position: absolute;
    left: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
}




/* 轮播图 */
.swiper-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.swiper-slide {
    height: 34.375vw;
    max-height: 660px;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #D39B2C;
}




.query-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(211, 155, 44, 0.3);
}



.query-btn:hover {
    background: #9C6615;
}

/* 移动端搜索 */
.mobile-search {
    display: none;
    background: linear-gradient(to bottom, #FFE7B3, #F6C462);
    padding: 1rem;
}

.mobile-search-container {
    display: flex;
    align-items: center;
}

.mobile-search-icon {
    width: 40px;
    padding: 0.75rem;
    opacity: 0.6;
    color: white;
}

.mobile-search-input {
    flex: 1;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
}

.mobile-search-input:focus {
    outline: none;
    border-color: #D39B2C;
}



.news-tabs {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 1rem 1rem;
    background: white;
    font-size: 1.25rem;
}

.news-tab {
    position: relative;
    padding-bottom: 0.5rem;
    color: #D39B2C;
    cursor: pointer;
}

.news-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 3px;
    background-color: #D39B2C;
    border-radius: 1.5px;
}

.news-tab-item {
    color: #333;
    transition: color 0.3s ease;
}

.news-tab-item:hover {
    color: #D39B2C;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    color: #D39B2C;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.news-image {
    width: 100%;
    height: 210px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.news-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-title {
    height: 3rem;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-desc {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.load-more {
    padding: 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.load-more:hover {
    color: #D39B2C;
}


.footer-links {
    display: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    font-weight: 500;
}

.footer-nav a:hover {
    text-decoration: underline;
}



@media (min-width: 768px) {
    .footer-content {
        display: flex;
        gap: 3rem;
    }
}

.footer-info {
    flex: 1;
}

.footer-title {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-qr {
    display: none;
    text-align: center;
}

.footer-qr-item {
    flex: 1;
}

.footer-qr-code {
    width: 7rem;
    height: 7rem;
    margin: 0 auto 0.5rem;
    background: #B87A1A;
    border-radius: 4px;
    overflow: hidden;
}

.footer-qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-qr-title {
    font-weight: 600;
    font-size: 1.125rem;
}

.footer-qr-desc {
    font-size: 0.875rem;
    font-weight: 300;
}

.footer-bottom {
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

/* 移动端底部导航 */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: white;
    border-top: 1px solid #f3f4f6;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    display: none;
}

.mobile-nav-container {
    display: flex;
    width: 100%;
}

.mobile-nav-item {
    flex: 1;
    padding: 0.75rem 0.5rem;
    text-align: center;
}

.mobile-nav-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 auto 0.25rem;
    color: #9ca3af;
}

.mobile-nav-text {
    font-size: 0.75rem;
    color: #9ca3af;
}

.mobile-nav-item.active .mobile-nav-icon,
.mobile-nav-item.active .mobile-nav-text {
    color: #D39B2C;
}

/* 响应式调整 */
@media (min-width: 1024px) {
    .footer-links,
    .footer-qr {
        display: block;
    }
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-container {
        display: none;
    }

    .nav-container.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(to bottom, #F6C462, #EDBC5D, #E1B257);
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 0.5rem;
        padding-left: 1rem;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        gap: 1rem;
    }

    .search-box {
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .logo {
        width: 100px;
    }

    .subtitle {
        width: 150px;
    }

    .query-section {
        display: none;
    }

    .mobile-search {
        display: flex;
    }

    .mobile-bottom-nav {
        display: block;
    }

    .main-content {
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .query-container {
        flex-direction: column;
        align-items: stretch;
    }

    .query-label,
    .query-input,

    .news-tabs {
        gap: 1.5rem;
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-qr {
        display: flex;
        margin-top: 2rem;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .logo-section {
        gap: 0.5rem;
    }

    .logo {
        width: 80px;
    }

    .subtitle {
        width: 120px;
    }

    .swiper-slide {
        height: 50vw;
    }
}

/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #D39B2C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
