/* =============================================
   外卖红包推广平台 - 前台样式 v2（现代风格）
   主色：#FF6A00（活力橙）
   强调色：#2563eb（蓝色）
   ============================================= */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: #1e293b;
    background: #f8fafc;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: #FF6A00; text-decoration: none; transition: all 0.2s ease; }
a:hover { color: #e55e00; }
img { max-width: 100%; height: auto; vertical-align: middle; }

::selection { background: #FF6A00; color: #fff; }

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

/* ===== Header ===== */
.site-header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

.logo img {
    border-radius: 8px;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo span {
    background: linear-gradient(135deg, #FF6A00, #FF8C38);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.main-nav a:hover {
    color: #FF6A00;
    background: rgba(255,106,0,0.06);
}

.main-nav a.active {
    color: #FF6A00;
    background: rgba(255,106,0,0.08);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    color: #475569;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: #f1f5f9;
}

/* ===== Notice Bar ===== */
.notice-bar {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    padding: 10px 0;
    font-size: 14px;
    color: #92400e;
    border-bottom: 1px solid rgba(251,191,36,0.3);
}

.notice-bar .container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.notice-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* ===== Main Content ===== */
.main-content {
    min-height: 60vh;
    padding: 28px 0 40px;
}

/* ===== Hero Section (首页) ===== */
.hero-section {
    text-align: center;
    padding: 56px 20px 40px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fff 100%);
    border-radius: 0 0 32px 32px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,106,0,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    line-height: 1.3;
    position: relative;
}

.hero-title span {
    background: linear-gradient(135deg, #FF6A00, #FF4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 16px;
    color: #64748b;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
}

/* ===== Section Header ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-more {
    font-size: 14px;
    color: #FF6A00;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.section-more:hover {
    background: rgba(255,106,0,0.08);
    color: #e55e00;
}

/* ===== Article List (new_index 风格) ===== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.article-list-item {
    display: flex;
    gap: 20px;
    padding: 22px 24px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

.article-list-item:hover {
    border-color: #fed7aa;
    box-shadow: 0 4px 24px rgba(255,106,0,0.08);
    transform: translateY(-2px);
}

.article-list-num {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    color: #94a3b8;
    transition: all 0.2s;
}

.article-list-item:nth-child(1) .article-list-num {
    background: linear-gradient(135deg, #fff0e0, #ffe4c4);
    color: #FF6A00;
}

.article-list-item:nth-child(2) .article-list-num {
    background: #f1f5f9;
    color: #64748b;
}

.article-list-item:nth-child(3) .article-list-num {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}

.article-list-body {
    flex: 1;
    min-width: 0;
}

.article-list-title {
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

.article-list-item:hover .article-list-title {
    color: #FF6A00;
}

.article-list-excerpt {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-list-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #cbd5e1;
}

.category-tag {
    background: linear-gradient(135deg, #FFF0E0, #FFE4C4);
    color: #c2410c;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== Article Grid (index 原始风格) ===== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.article-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.25s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border-color: #fed7aa;
}

.article-card-body {
    padding: 22px;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #FFF0E0, #FFE4C4);
    color: #c2410c;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.article-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.45;
    font-weight: 600;
}

.article-title a {
    color: #0f172a;
    transition: color 0.2s;
}

.article-title a:hover {
    color: #FF6A00;
}

.article-excerpt {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #cbd5e1;
}

/* ===== Article Detail ===== */
.breadcrumb {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 24px;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #94a3b8;
}

.breadcrumb a:hover {
    color: #FF6A00;
}

.breadcrumb .sep {
    color: #d1d5db;
}

.breadcrumb .current {
    color: #334155;
    font-weight: 500;
}

.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-detail-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.article-detail-title {
    font-size: 30px;
    line-height: 1.4;
    color: #0f172a;
    margin-bottom: 16px;
    font-weight: 800;
}

.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #94a3b8;
}

.article-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: #334155;
}

.article-content p {
    margin-bottom: 1.2em;
}

.article-content h2 {
    font-size: 24px;
    color: #0f172a;
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    font-weight: 700;
}

.article-content h3 {
    font-size: 19px;
    color: #1e293b;
    margin: 28px 0 12px;
    font-weight: 600;
}

.article-content img {
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.article-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: #1d4ed8;
}

.article-content blockquote {
    border-left: 4px solid #FF6A00;
    padding: 14px 22px;
    margin: 20px 0;
    background: #fff7ed;
    border-radius: 0 10px 10px 0;
    color: #64748b;
    font-style: normal;
}

.article-content ul,
.article-content ol {
    margin: 14px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.article-content th {
    background: #f8fafc;
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.article-content td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
}

/* ===== Related Articles ===== */
.related-articles {
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
}

.related-articles h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.related-list li {
    padding: 12px 16px;
    border-radius: 10px;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-list li:hover {
    background: #f8fafc;
}

.related-list a {
    color: #334155;
    font-size: 15px;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-list a:hover {
    color: #FF6A00;
}

.related-date {
    font-size: 13px;
    color: #94a3b8;
    flex-shrink: 0;
    margin-left: 12px;
}

/* ===== Activity Page ===== */
.page-header {
    text-align: center;
    padding: 24px 0 20px;
}

.page-header h1 {
    font-size: 28px;
    color: #0f172a;
    margin-bottom: 8px;
    font-weight: 800;
}

.page-header p {
    color: #94a3b8;
    font-size: 15px;
}

.platform-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 28px;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.tab-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s ease;
    text-decoration: none;
}

.tab-link:hover {
    color: #FF6A00;
    background: #fff7ed;
}

.tab-link.active {
    background: linear-gradient(135deg, #FF6A00, #FF8C38);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,106,0,0.2);
}

.tab-link.active img {
    filter: brightness(10);
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.activity-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: all 0.25s ease;
}

.activity-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border-color: #fed7aa;
    transform: translateY(-2px);
}

.activity-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 14px;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid #f8fafc;
}

.activity-card-header img {
    width: 22px;
    height: 22px;
}

.activity-card-header .activity-name {
    flex: 1;
    color: #0f172a;
}

.activity-card-body {
    padding: 20px;
}

.activity-qr {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.activity-qr img {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.activity-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
    margin: 0 auto;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    text-decoration: none;
}

.page-link:hover {
    border-color: #FF6A00;
    color: #FF6A00;
    background: #fff7ed;
}

.page-link.active {
    background: linear-gradient(135deg, #FF6A00, #FF8C38);
    color: #fff;
    border-color: #FF6A00;
    box-shadow: 0 2px 8px rgba(255,106,0,0.2);
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}

.empty-state p {
    font-size: 16px;
}

/* ===== Footer ===== */
.site-footer {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    padding: 48px 0 0;
    margin-top: 56px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid #f1f5f9;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    text-decoration: none;
}

.footer-logo img {
    border-radius: 8px;
}

.footer-logo span {
    background: linear-gradient(135deg, #FF6A00, #FF8C38);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-slogan {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 14px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: #64748b;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-block;
}

.footer-col a:hover {
    color: #FF6A00;
    transform: translateX(2px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    color: #94a3b8;
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .container { padding: 0 16px; }

    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 12px;
        border-bottom: 1px solid #f1f5f9;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

    .main-nav.open { display: flex; }

    .main-nav a {
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 15px;
    }

    .menu-toggle { display: block; }

    .hero-section { padding: 40px 16px 32px; }
    .hero-title { font-size: 26px; }
    .hero-desc { font-size: 15px; }

    .article-grid { grid-template-columns: 1fr; }
    .article-list-item { padding: 16px; gap: 14px; }
    .article-list-num { width: 36px; height: 36px; font-size: 15px; }
    .article-list-title { font-size: 15px; }

    .article-detail-title { font-size: 24px; }
    .article-content { font-size: 15px; }

    .activity-grid { grid-template-columns: 1fr; }
    .platform-tabs { flex-wrap: wrap; gap: 4px; }
    .tab-link { flex: 1; justify-content: center; padding: 8px 12px; font-size: 13px; }

    .page-link { min-width: 36px; height: 36px; font-size: 13px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-col ul {
        align-items: center;
    }
}
