/* 每日大赛品牌资讯门户 - 全局样式 */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0052a3;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1em;
}

/* ==================== 页头样式 ==================== */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    color: #0066cc;
    margin: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    border-bottom-color: #0066cc;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    border-top: 1px solid #e0e0e0;
}

#search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-btn {
    padding: 0.75rem 2rem;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #0052a3;
}

/* ==================== 主内容区域 ==================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.section-header {
    margin-bottom: 2rem;
    border-bottom: 3px solid #0066cc;
    padding-bottom: 1rem;
}

.section-header h2 {
    margin: 0 0 0.5rem 0;
    color: #0066cc;
}

.section-desc {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* ==================== 品牌头条模块 ==================== */
.headline-container {
    display: grid;
    gap: 2rem;
}

.headline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.headline-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16/9;
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.headline-item:hover .video-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.headline-content h3 {
    margin-bottom: 1rem;
}

.headline-content h3 a {
    color: #333;
}

.headline-content h3 a:hover {
    color: #0066cc;
}

.description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.meta-info {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-info a {
    color: #0066cc;
}

.engagement-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #0066cc;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #0066cc;
    color: white;
}

/* ==================== 品牌热点资讯模块 ==================== */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.trending-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trending-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

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

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.card-content h3 a {
    color: #333;
}

.card-content h3 a:hover {
    color: #0066cc;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #999;
    margin-top: 1rem;
}

/* ==================== 品牌行业观察模块 ==================== */
.observation-list {
    display: grid;
    gap: 2rem;
}

.observation-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.item-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16/9;
}

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

.item-content h3 {
    margin-bottom: 1rem;
}

.item-content h3 a {
    color: #333;
}

.item-content h3 a:hover {
    color: #0066cc;
}

.item-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #999;
    margin-top: 1rem;
}

/* ==================== 品牌专题策划模块 ==================== */
.topic-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.topic-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==================== 品牌热门阅读模块 ==================== */
.popular-list {
    display: grid;
    gap: 1.5rem;
}

.popular-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.rank-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.popular-item h3 {
    margin-bottom: 0.5rem;
}

.popular-item h3 a {
    color: #333;
}

.popular-item h3 a:hover {
    color: #0066cc;
}

.stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

/* ==================== 品牌推荐作者模块 ==================== */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.author-card {
    text-align: center;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.author-avatar {
    margin-bottom: 1rem;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
}

.author-info h3 {
    margin-bottom: 0.5rem;
}

.author-info h3 a {
    color: #333;
}

.author-info h3 a:hover {
    color: #0066cc;
}

.bio {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #999;
}

/* ==================== 品牌FAQ模块 ==================== */
.faq-container {
    display: grid;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.toggle-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 1.5rem;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.8;
}

/* ==================== 用户评论模块 ==================== */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
}

.verified-badge {
    font-size: 0.75rem;
    background-color: #0066cc;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.review-rating {
    margin-bottom: 1rem;
}

.star {
    color: #ffc107;
    font-size: 1rem;
}

.review-content {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.review-footer {
    font-size: 0.85rem;
    color: #999;
}

/* ==================== CTA模块 ==================== */
.section-cta {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.cta-container h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.cta-container p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: white;
    color: #0066cc;
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #0066cc;
    transform: translateY(-2px);
}

/* ==================== 页脚样式 ==================== */
.site-footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 3rem 2rem 1rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #0066cc;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #0066cc;
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}

.copyright {
    margin-bottom: 0.5rem;
}

.update-time {
    margin: 0;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .headline-item {
        grid-template-columns: 1fr;
    }

    .observation-item {
        grid-template-columns: 1fr;
    }

    .trending-grid {
        grid-template-columns: 1fr;
    }

    .authors-grid {
        grid-template-columns: 1fr;
    }

    .reviews-container {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .main-content {
        padding: 1rem;
    }

    section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .main-nav {
        display: none;
    }

    .search-form {
        flex-direction: column;
    }

    .search-input,
    .search-btn {
        width: 100%;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }

    .meta-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .site-header,
    .site-footer,
    .search-container,
    .section-cta {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}
