/* 慈溪家博会网站样式表 - style.css */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --primary-light: #ff6659;
    --secondary-color: #f5f5f5;
    --accent-color: #ff9800;
    --accent-dark: #f57c00;
    --text-color: #333;
    --light-text: #fff;
    --gray-text: #666;
    --light-gray: #eee;
    --border-color: #ddd;
    --shadow: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 6px 12px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

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

/* 头部信息 */
.header-info {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--light-text);
    text-align: center;
    padding: 12px 0;
    font-size: 18px;
    font-weight: bold;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.header-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    pointer-events: none;
}

/* Logo区域 */
.logo-section {
    text-align: center;
    padding: 20px 0;
    background-color: var(--light-text);
    border-bottom: 1px solid var(--border-color);
}

.logo-section img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
}

/* 内容图片区域 */
.content-images {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.content-images img {
    width: 100%;
    height: auto;
    display: block;
}

/* 门票按钮 */
.ticket-button {
    display: block;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--light-text);
    text-align: center;
    padding: 18px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.ticket-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.ticket-button:hover {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.ticket-button:hover::before {
    left: 100%;
}

/* 内容区域 */
.content-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--light-text);
    padding: 40px 20px;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.content-section p {
    margin-bottom: 25px;
    text-align: justify;
    position: relative;
    z-index: 1;
}

.content-section p:last-child {
    margin-bottom: 0;
}

/* 帮助区域 - 修正文字颜色问题 */
.help-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    padding: 40px 0;
    background-color: var(--secondary-color);
    color: var(--text-color); /* 确保整体文字颜色正常 */
}

.contact-info {
    background-color: var(--light-text);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--text-color); /* 确保文字颜色正常 */
}

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

.contact-info span {
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 18px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}

.contact-info p {
    font-size: 16px;
    color: var(--gray-text);
}

.help-section dl {
    background-color: var(--light-text);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--text-color); /* 确保文字颜色正常 */
}

.help-section dl:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.help-section dt {
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    font-size: 18px;
}

.help-section dd {
    margin-left: 0;
    margin-bottom: 8px;
    padding-left: 0;
    position: relative;
    transition: var(--transition);
    color: var(--text-color); /* 确保文字颜色正常 */
}

.help-section dd:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.help-section dd:last-child {
    margin-bottom: 0;
}

/* 页脚信息 */
.footer-info {
    padding: 30px 0;
    background: linear-gradient(135deg, #333, #222);
    color: var(--light-text);
}

.footer-details {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-info p {
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.8;
}

.footer-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-info a:hover {
    color: var(--light-text);
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: rgba(255,255,255,0.1);
    transition: var(--transition);
}

.footer-links a:hover {
    background-color: var(--accent-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

.city-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.city-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    white-space: nowrap;
}

.city-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 分隔线 */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    margin: 30px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-info {
        font-size: 16px;
        padding: 10px 0;
    }
    
    .logo-section {
        padding: 15px 0;
    }
    
    .content-section {
        padding: 30px 15px;
    }
    
    .help-section {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 30px 0;
    }
    
    .ticket-button {
        font-size: 18px;
        padding: 15px;
    }
    
    .city-links {
        gap: 5px;
    }
    
    .city-links a {
        font-size: 12px;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .footer-info p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .header-info {
        font-size: 14px;
    }
    
    .content-section p {
        font-size: 14px;
    }
    
    .help-section dt, .contact-info span {
        font-size: 16px;
    }
    
    .city-links a {
        font-size: 11px;
    }

    
    .ticket-button {
        font-size: 16px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section, .help-section, .footer-info {
    animation: fadeIn 0.8s ease-out;
}