/* Daily Contest Tool Platform Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --muted-color: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
}

body {
    font-family: 'PingFang SC', 'Inter', sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

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

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

/* Header */
.site-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Search Bar */
.search-bar-container {
    background: #f1f5f9;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    outline: none;
    font-size: 14px;
}

.search-btn {
    padding: 10px 24px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 600;
}

/* Breadcrumb */
.breadcrumb-container {
    padding: 12px 0;
    font-size: 13px;
    color: var(--muted-color);
}

.breadcrumb a {
    color: var(--muted-color);
    text-decoration: none;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-header h2 {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--muted-color);
    font-size: 16px;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Tool Cards */
.tool-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

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

.tool-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Video Cards */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.video-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
}

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

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

.play-btn {
    width: 50px; height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 20px;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 18px; margin: 0 0 10px;
}

.video-meta {
    display: flex; justify-content: space-between;
    font-size: 13px; color: var(--muted-color);
}

/* FAQ */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 16px; margin-bottom: 8px; color: var(--primary-color);
}

/* Reviews */
.review-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 40px; margin-bottom: 20px; filter: brightness(0) invert(1);
}

.footer-links h3, .footer-contact h3 {
    color: var(--white); font-size: 18px; margin-bottom: 20px;
}

.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; text-decoration: none; }
.footer-links a:hover { color: var(--primary-color); }

.qr-codes { display: flex; gap: 20px; margin-top: 20px; }
.qr-codes img { width: 100px; height: 100px; background: #fff; padding: 5px; border-radius: 4px; }

.footer-bottom {
    text-align: center; padding-top: 30px; border-top: 1px solid #1e293b; font-size: 13px;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .main-nav { display: none; }
}
