/* 桃源永春网 - 精美主样式表 */

/* 基础重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 永春绿 */
    --primary: #1a5f2a;
    --primary-light: #2e8b57;
    --primary-dark: #0d3d16;
    
    /* 辅助色 */
    --accent: #e8b86d;
    --accent-light: #f5d799;
    --warm: #c75b39;
    
    /* 中性色 */
    --text: #2c3e50;
    --text-light: #5a6c7d;
    --text-muted: #95a5a6;
    --bg: #f8f9fa;
    --bg-light: #ffffff;
    --border: #e9ecef;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    --gradient-warm: linear-gradient(135deg, var(--warm) 0%, #e07b5f 100%);
    
    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.15);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    
    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 顶部工具栏 ========== */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    padding: 10px 0;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

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

.top-left {
    display: flex;
    gap: 24px;
    align-items: center;
}

.top-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-right {
    display: flex;
    gap: 24px;
}

.top-right a {
    color: rgba(255,255,255,0.85);
    position: relative;
}

.top-right a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.top-right a:hover {
    color: var(--accent);
}

.top-right a:hover::after {
    width: 100%;
}

/* ========== 头部 ========== */
.main-header {
    background: var(--bg-light);
    padding: 24px 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

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

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

.logo-img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text h1 {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.slogan {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 16px;
    background: var(--gradient-accent);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

/* 搜索框 */
.search-box {
    width: 480px;
    position: relative;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    padding: 14px 24px;
    padding-right: 120px;
    border: 2px solid var(--border);
    border-radius: 30px;
    font-size: 14px;
    background: var(--bg);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-light);
    box-shadow: 0 0 0 4px rgba(26, 95, 42, 0.1);
}

.search-box button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-box button:hover {
    transform: translateY(-50%) scale(1.02);
    box-shadow: var(--shadow);
}

.hot-search {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hot-search a {
    color: var(--primary-light);
    padding: 3px 10px;
    background: rgba(26, 95, 42, 0.08);
    border-radius: 12px;
    transition: var(--transition);
}

.hot-search a:hover {
    background: var(--primary);
    color: white;
}

/* ========== 主导航 ========== */
.main-nav {
    background: var(--gradient-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-menu {
    display: flex;
    justify-content: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 24px;
    color: rgba(255,255,255,0.95);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
    transition: var(--transition);
}

.nav-menu > li:hover > a,
.nav-menu > li.active > a {
    color: white;
}

.nav-menu > li:hover > a::before,
.nav-menu > li.active > a::before {
    width: 60%;
}

/* ========== 焦点图区域 ========== */
.hero-section {
    padding: 40px 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg) 100%);
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

/* 轮播图 */
.carousel {
    position: relative;
    height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

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

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.carousel-caption h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.carousel-caption p {
    font-size: 15px;
    opacity: 0.9;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    right: 40px;
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

/* 新闻标签页 */
.news-tabs {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tab-header {
    display: flex;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.tab-header span {
    flex: 1;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}

.tab-header span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
    transition: var(--transition);
}

.tab-header span.active,
.tab-header span:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.tab-header span.active::after {
    width: 40%;
}

.tab-content {
    display: none;
    padding: 20px;
    flex: 1;
}

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

.news-list li {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li:hover {
    padding-left: 8px;
}

.news-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--primary-light);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}

.news-tag.red {
    background: var(--warm);
}

.news-list a {
    flex: 1;
    color: var(--text);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-list a:hover {
    color: var(--primary);
}

/* ========== 快捷服务 ========== */
.quick-services {
    padding: 60px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: var(--bg);
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-item:hover {
    background: var(--bg-light);
    border-color: var(--primary-light);
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

.service-item span:last-child {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* ========== 三栏内容 ========== */
.three-columns {
    padding: 60px 0;
    background: var(--bg);
}

.three-columns .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.col {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.col:hover {
    box-shadow: var(--shadow-lg);
}

.col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--gradient-primary);
    color: white;
}

.col-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.more {
    font-size: 13px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
}

.more:hover {
    opacity: 1;
    gap: 8px;
}

.col .list {
    padding: 16px 24px;
}

.col .list li {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.col .list li:last-child {
    border-bottom: none;
}

.col .list li:hover {
    padding-left: 8px;
}

.col .list a {
    flex: 1;
    font-size: 14px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col .list a:hover {
    color: var(--primary);
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: var(--primary-light);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

.tag.red {
    background: var(--warm);
}

/* ========== 乡镇风采 ========== */
.towns-showcase {
    padding: 60px 0;
    background: var(--bg-light);
}

.towns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.town-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    aspect-ratio: 4/3;
}

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

.town-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.town-card:hover img {
    transform: scale(1.1);
}

.town-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
    transition: var(--transition);
}

.town-card:hover .town-info {
    padding-bottom: 30px;
}

.town-info h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.town-info p {
    font-size: 13px;
    opacity: 0.9;
}

.towns-more {
    text-align: center;
    margin-top: 40px;
}

.towns-more a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.towns-more a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    gap: 12px;
}

/* ========== 特产推荐 ========== */
.specialty-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-light) 100%);
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.specialty-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 20px;
}

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

.specialty-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: var(--transition);
}

.specialty-card:hover img {
    transform: scale(1.05);
}

.specialty-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 6px;
    color: var(--text);
}

.specialty-card p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.btn-buy {
    display: inline-block;
    padding: 8px 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-buy:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* ========== 互动交流 ========== */
.interactive-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.interactive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.interactive-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid transparent;
}

.interactive-item:hover {
    background: var(--bg-light);
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.interactive-item .icon {
    font-size: 36px;
    transition: var(--transition);
}

.interactive-item:hover .icon {
    transform: scale(1.1);
}

.interactive-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.interactive-item p {
    font-size: 13px;
    color: var(--text-light);
}

/* ========== 数据展示 ========== */
.data-yongchun {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.data-yongchun::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.data-yongchun .section-title {
    color: white;
}

.data-yongchun .section-title::after {
    background: var(--accent);
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.data-item {
    padding: 20px;
}

.data-number {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, white, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.data-unit {
    font-size: 18px;
    margin-top: 8px;
    opacity: 0.9;
}

.data-label {
    font-size: 15px;
    margin-top: 12px;
    opacity: 0.8;
}

/* ========== 页脚 ========== */
.main-footer {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--accent);
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '›';
    color: var(--accent);
    font-size: 18px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links span {
    padding: 10px 18px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 13px;
    transition: var(--transition);
    cursor: pointer;
}

.social-links span:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin-bottom: 8px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
    .service-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .specialty-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .towns-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .interactive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-section .container {
        grid-template-columns: 1fr;
    }
    
    .three-columns .container {
        grid-template-columns: 1fr;
    }
    
    .data-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .nav-menu > li > a {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .specialty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .towns-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .specialty-grid {
        grid-template-columns: 1fr;
    }
    
    .towns-grid {
        grid-template-columns: 1fr;
    }
    
    .interactive-grid {
        grid-template-columns: 1fr;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel {
        height: 280px;
    }
    
    .carousel-caption h3 {
        font-size: 20px;
    }
}