/* ========================================
   每日大赛 - 主样式表
   官网：a1d624.cn
   ======================================== */

:root {
    --primary: #e02020;
    --primary-dark: #b01010;
    --secondary: #ff6b35;
    --text: #333;
    --text-light: #666;
    --bg: #f5f5f5;
    --white: #fff;
    --border: #e0e0e0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 15px;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--primary); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* ===== HEADER ===== */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.logo a {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 26px;
    color: var(--primary);
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.search-box {
    display: flex;
    border: 2px solid var(--primary);
    border-radius: 25px;
    overflow: hidden;
}

.search-box input {
    border: none;
    padding: 8px 16px;
    outline: none;
    width: 220px;
    font-size: 14px;
    font-family: inherit;
}

.search-box button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: background 0.2s;
}

.search-box button:hover { background: var(--primary-dark); }

.header-contact {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    gap: 15px;
}

nav {
    border-top: 1px solid var(--border);
}

nav ul {
    display: flex;
    gap: 0;
}

nav a {
    display: block;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

nav a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: #fef5f5;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-light);
}

.breadcrumb a { color: var(--primary); }

/* ===== SECTIONS ===== */
section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 50px 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

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

.section-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BANNER ===== */
.banner-section { padding: 0; overflow: hidden; }

.banner {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: var(--radius);
}

.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: var(--white);
    background: rgba(0,0,0,0.55);
    padding: 30px 40px;
    border-radius: var(--radius);
    backdrop-filter: blur(2px);
    min-width: 360px;
}

.banner-text h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.banner-text p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.2s;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224,32,32,0.3);
}

.btn-link {
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
}

.btn-link:hover { text-decoration: underline; }

/* ===== SERVICE GRID ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.service-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    background: var(--white);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

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

.service-card h3 {
    font-size: 18px;
    font-weight: bold;
    padding: 15px 20px 8px;
    color: var(--text);
}

.service-card p {
    padding: 0 20px 15px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.service-card a {
    display: block;
    padding: 10px 20px 20px;
}

/* ===== PROCESS ===== */
.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.step {
    background: #fef5f5;
    border: 1px solid #fdd;
    border-radius: var(--radius);
    padding: 25px 20px;
    text-align: center;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
}

.step-num {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
}

.step h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

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

/* ===== VIDEO GRID ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.video-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.video-thumb {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #222;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(224,32,32,0.85);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.play-btn::after {
    content: '▶';
    margin-left: 4px;
}

.video-card:hover .play-btn {
    display: flex;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.video-tag {
    background: #fef5f5;
    color: var(--primary);
    border: 1px solid #fdd;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.video-date {
    font-size: 12px;
    color: var(--text-light);
}

.video-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.view-more {
    text-align: center;
    padding-top: 10px;
}

/* ===== ENVIRONMENT ===== */
.env-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.env-main img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.env-caption h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text);
}

.env-caption p {
    color: var(--text-light);
    line-height: 1.7;
}

.env-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    background: #fef5f5;
    border: 1px solid #fdd;
    border-radius: var(--radius);
    padding: 20px 15px;
    text-align: center;
}

.stat-num {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
}

/* ===== REVIEWS ===== */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.review-card {
    background: #fafafa;
    border-radius: var(--radius);
    padding: 20px;
    border-left: 4px solid var(--primary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
}

.review-user {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-tag {
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: normal;
}

.review-rating {
    color: #f5a623;
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

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

.review-date {
    font-size: 12px;
    color: #aaa;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-q {
    font-weight: bold;
    font-size: 16px;
    padding: 18px 20px;
    background: #fef5f5;
    color: var(--primary);
    cursor: pointer;
    transition: background 0.2s;
}

.faq-q:hover { background: #fde8e8; }

.faq-a {
    padding: 15px 20px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 14px;
    border-top: 1px solid var(--border);
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.contact-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.contact-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.contact-map img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.map-info h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text);
}

.map-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
footer {
    background: #222;
    color: #ccc;
    padding: 50px 0 20px;
    margin-top: 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.footer-col p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 13px;
    color: #888;
    line-height: 2;
}

.footer-bottom a {
    color: #aaa;
    margin: 0 8px;
}

.footer-bottom a:hover { color: var(--primary); }

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* ===== ABOUT PAGE ===== */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.about-intro img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
}

.about-text h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text);
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ===== CASE PAGE ===== */
.case-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    background: var(--white);
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        align-items: flex-start;
        width: 100%;
    }

    .search-box input { width: 160px; }

    nav ul {
        flex-wrap: wrap;
        gap: 0;
    }

    nav a { padding: 10px 12px; font-size: 14px; }

    .banner { height: 220px; }
    .banner-text { padding: 15px 20px; min-width: auto; width: 90%; }
    .banner-text h2 { font-size: 20px; }

    section { padding: 30px 20px; }
    .section-title { font-size: 22px; }

    .service-grid { grid-template-columns: 1fr 1fr; }
    .video-grid { grid-template-columns: 1fr 1fr; }

    .process-steps { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }

    .env-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .about-intro { grid-template-columns: 1fr; }

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

@media (max-width: 480px) {
    .service-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
    .env-stats { grid-template-columns: 1fr 1fr; }
}

/* ===== TIMELINE ===== */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
}

.timeline-item {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-year {
    font-size: 16px;
    font-weight: 900;
    color: var(--primary);
    min-width: 60px;
    padding-top: 5px;
}

.timeline-content h3 {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text);
}

.timeline-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* ===== TAG CLOUD ===== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 20px 0;
}

.tag {
    display: inline-block;
    background: #fef5f5;
    color: var(--primary);
    border: 1px solid #fdd;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s;
}

.tag:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
