/* 红黄蓝主题配色方案 */
:root {
    --primary-color: #ff0000;    /* 红色 */
    --secondary-color: #ffff00;  /* 黄色 */
    --accent-color: #0000ff;     /* 蓝色 */
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-color);
}

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

/* 头部样式 */
header {
    background: var(--dark-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 2rem;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
}

/* 横幅样式 */
.hero {
    margin-bottom: 3rem;
}

.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
    max-width: 800px;
}

.banner-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: var(--secondary-color);
}

.banner-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.cta-btn {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-btn:hover {
    background: transparent;
    border-color: white;
    transform: translateY(-3px);
}

/* 精选内容样式 */
.featured {
    padding: 2rem 0;
}

.featured h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--primary-color);
}

.featured h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
}

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

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

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

.card-content {
    padding: 20px;
}

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

.card-content p {
    margin-bottom: 15px;
    color: #7f8c8d;
}

.date {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.watch-btn {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.watch-btn:hover {
    background: var(--dark-color);
}

/* 关于页面样式 */
.about-page {
    padding: 3rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 3rem;
}

.about-text h2 {
    margin: 2rem 0 1rem;
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
}

.about-text ul {
    padding-left: 20px;
    margin-top: 1rem;
}

.about-text li {
    margin-bottom: 10px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid var(--secondary-color);
}

/* 联系我们页面样式 */
.contact-page {
    padding: 3rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 2rem;
}

.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.contact-info .info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
    min-width: 30px;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: #f1f2f6;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--accent-color);
    color: white;
}

.map-wrapper {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--dark-color);
}

.status-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* 页脚样式 */
footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

footer p {
    text-align: center;
    margin-bottom: 1rem;
}

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

.footer-links a {
    color: var(--secondary-color);
    margin: 0 10px;
    text-decoration: none;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav li {
        margin: 0 0.5rem;
    }
    
    .banner {
        height: 400px;
    }
    
    .banner-text h1 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}