/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #A82020; /* 古建红 */
    --secondary-color: #2A6099; /* 山河蓝 */
    --accent-color: #E6B25B; /* 大地黄 */
    --text-color: #333;
    --light-text: #666;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 弹窗样式 */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
}

.modal-content h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 10px;
}

.modal-content .subtitle {
    color: var(--secondary-color);
    font-size: 16px;
    margin-bottom: 20px;
}

.modal-content hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #eee;
}

.modal-content p {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 10px;
}

.modal-content h3 {
    color: var(--primary-color);
    margin: 20px 0 10px;
    font-size: 24px;
}

.modal-content .domain {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
}

.modal-content .invite {
    color: var(--secondary-color);
    font-size: 16px;
    margin-bottom: 25px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-buttons button {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-buttons button:first-child {
    background: var(--primary-color);
    color: var(--white);
}

.modal-buttons button:last-child {
    background: #eee;
    color: var(--text-color);
}

.modal-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 头部导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    height: 70px;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-list a {
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    padding: 10px 0;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

/* 首页轮播图 */
.hero {
    position: relative;
    height: 100vh;
    margin-top: 70px;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 48px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 通用区块 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

.bg-light {
    background: var(--bg-light);
}

.bg-dark {
    background: var(--bg-dark);
    color: var(--white);
}

/* 平台简介 */
.about-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 2;
}

.about-content span {
    color: var(--primary-color);
    font-weight: bold;
}

/* 网格布局 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

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

/* 卡片 */
.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 200px;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.card-content p {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 12px;
    border-radius: 20px;
}

/* 市县卡片 */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.city-card {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-top: 4px solid var(--primary-color);
}

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

.city-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.city-card p {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 10px;
}

.city-card span {
    color: var(--secondary-color);
    font-size: 13px;
}

/* 三晋概况 */
.overview-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.overview-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.overview-content span {
    color: var(--primary-color);
    font-weight: bold;
}

.features {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
}

.feature-item i {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

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

/* 线路卡片 */
.route-card {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-left: 4px solid var(--primary-color);
}

.route-card:hover {
    transform: translateX(5px);
}

.route-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.route-card p {
    color: var(--light-text);
}

/* 文化卡片 */
.culture-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.culture-card:hover {
    transform: translateY(-5px);
}

.culture-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.culture-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.culture-card p {
    color: var(--light-text);
    font-size: 14px;
}

/* 互动交流 */
.interaction-rules {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.interaction-rules h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.interaction-rules ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: var(--text-color);
}

.interaction-rules ul li:last-child {
    border-bottom: none;
}

.interaction-form {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.interaction-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.interaction-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.interaction-form input,
.interaction-form select,
.interaction-form textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.interaction-form input:focus,
.interaction-form select:focus,
.interaction-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 关于我们完整版 */
.about-full {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-full p {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 2;
}

.about-full .highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.about-full .slogan {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
    margin-top: 30px;
}

/* 联系区块 */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 30px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
}

.contact-info i {
    color: var(--accent-color);
    width: 20px;
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-primary {
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #a1a;
}

/* 页脚8a1 */
footer {
    background: #2d2d44;
    color: #999;
    padding: 40px 0;
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-content hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #444;
}

.disclaimer {
    font-size: 13px;
    color: #777;
}

/* 响应式 */
@media (max-width: 992px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
    }
    
    .features {
        flex-direction: column;
        gap: 30px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* 运营规范样式 */
.rules-section {
    background: #f8f9fa;
}

.rules-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.rules-content ul {
    list-style: none;
}

.rules-content li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    line-height: 1.8;
}

.rules-content li:last-child {
    border-bottom: none;
}

.rules-content li strong {
    color: #A82020;
}

/* 景区列表样式 */
.spots-by-city {
    display: grid;
    gap: 30px;
}

.city-spots {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.city-spots h3 {
    color: #A82020;
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.spot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.spot-tag {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 14px;
    color: #495057;
    transition: all 0.3s;
}

.spot-tag:hover {
    background: linear-gradient(135deg, #A82020 0%, #c82333 100%);
    color: white;
    border-color: #A82020;
    transform: translateY(-2px);
}

.spots-note {
    text-align: center;
    margin-top: 40px;
    color: #999;
    font-size: 14px;
}
