/* ===== style.css ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* 主内容区 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* 区块标题 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title-bar {
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #3498db 0%, #2980b9 100%);
    border-radius: 2px;
}
.section-title h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2d3d;
    letter-spacing: 0.5px;
}
.section-desc {
    font-size: 13px;
    color: #8a96a3;
    margin-left: 4px;
}
.section-more {
    font-size: 13px;
    color: #3498db;
    text-decoration: none;
}
.section-more:hover {
    text-decoration: underline;
}

/* 卡券介绍区 */
.intro-section {
    margin-bottom: 24px;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(20, 30, 60, 0.06);
    border: 1px solid #eef1f5;
}
.intro-section .hot-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #eef1f5;
    position: relative;
}
.intro-section .hot-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #bcd4ea 20%, #bcd4ea 80%, transparent 100%);
}
.intro-accordion {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.intro-item {
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid #eef1f5;
    overflow: hidden;
    transition: all 0.3s;
}
.intro-item:hover {
    background: #fff;
    border-color: #d8e2ec;
    box-shadow: 0 4px 14px rgba(52, 152, 219, 0.08);
}
.intro-item.active {
    background: #fff;
    border-color: #3498db;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.15);
}
.intro-header {
    padding: 18px 20px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 16px;
}
.intro-header:hover {
    background: #fafbfc;
}
.intro-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.intro-icon.blue { background: linear-gradient(135deg, #e3f2fd, #bbdefb); color: #1976d2; }
.intro-icon.green { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); color: #388e3c; }
.intro-icon.orange { background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: #f57c00; }
.intro-icon.purple { background: linear-gradient(135deg, #f3e5f5, #e1bee7); color: #8e24aa; }

.intro-icon svg {
    width: 26px;
    height: 26px;
}

.intro-info {
    flex: 1;
    min-width: 0;
}

.intro-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.intro-item h3 .arrow {
    font-size: 12px;
    color: #ccc;
    transition: all 0.3s;
    font-weight: normal;
}
.intro-item.active h3 .arrow {
    transform: rotate(180deg);
    color: #3498db;
}
.intro-item .desc {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
}
.intro-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.intro-item.active .intro-content {
    max-height: 300px;
    padding: 0 20px 16px;
}
.intro-list {
    background: #fafbfc;
    border-radius: 8px;
    padding: 8px;
}
.intro-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.intro-list-item:hover {
    background: #fff;
}
.intro-list-item:hover .intro-list-title {
    color: #3498db;
}
.intro-list-dot {
    width: 4px;
    height: 4px;
    background: #ddd;
    border-radius: 50%;
    flex-shrink: 0;
}
.intro-list-item:hover .intro-list-dot {
    background: #3498db;
}
.intro-list-title {
    flex: 1;
    font-size: 13px;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}
.intro-list-hot {
    font-size: 11px;
    color: #ff6b6b;
    background: #fff0f0;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}
.intro-more {
    display: block;
    text-align: center;
    padding: 8px;
    margin-top: 10px;
    font-size: 12px;
    color: #3498db;
    background: #eaf5fd;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.intro-more:hover {
    background: #d6ecf7;
}

/* 新闻资讯区 */
.news-section {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(20, 30, 60, 0.06);
    border: 1px solid #eef1f5;
}

.news-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.news-tab {
    padding: 8px 20px;
    font-size: 14px;
    color: #666;
    background: #f5f7fa;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.news-tab:hover {
    background: #eaf5fd;
    color: #3498db;
}
.news-tab.active {
    background: #3498db;
    color: #fff;
}

.accordion {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.accordion-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8ecf2;
    background: #fff;
    transition: all 0.25s;
}
.accordion-item:hover {
    border-color: #bcd4ea;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.08);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.accordion-header:hover {
    background: #f8f9fa;
}

.accordion-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.accordion-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.accordion-icon svg {
    width: 22px;
    height: 22px;
}

.accordion-icon.icon-phone { background: linear-gradient(135deg, #3498db, #2980b9); }
.accordion-icon.icon-game { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.accordion-icon.icon-fuel { background: linear-gradient(135deg, #f39c12, #e67e22); }
.accordion-icon.icon-shop { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.accordion-icon.icon-food { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.accordion-icon.icon-video { background: linear-gradient(135deg, #1abc9c, #16a085); }
.accordion-icon.icon-gift { background: linear-gradient(135deg, #e91e63, #c2185b); }
.accordion-icon.icon-transport { background: linear-gradient(135deg, #607d8b, #455a64); }
.accordion-icon.icon-more { background: linear-gradient(135deg, #00bcd4, #0097a7); }

.accordion-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}
.accordion-info p {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 2px;
}

.accordion-arrow {
    width: 24px;
    height: 24px;
    background: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #95a5a6;
    transition: all 0.2s;
    flex-shrink: 0;
}
.accordion-item:hover .accordion-arrow {
    background: #e8f4fd;
    color: #3498db;
}
.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
    background: #3498db;
    color: #fff;
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.accordion-item.active .accordion-content {
    max-height: 500px;
}

.article-list {
    display: flex;
    flex-direction: column;
    background: #fafbfc;
}

.article-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-bottom: 1px solid #e8e8e8;
    transition: background 0.2s;
}
.article-item:last-child {
    border-bottom: none;
}
.article-item:hover {
    background: #f0f7ff;
}

.article-dot {
    width: 3px;
    height: 3px;
    background: #bdc3c7;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s;
}
.article-item:hover .article-dot {
    background: #3498db;
    width: 4px;
    height: 4px;
}

.article-title {
    flex: 1;
    font-size: 13px;
    color: #34495e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
    text-decoration: none;
}
.article-title:hover {
    color: #3498db;
}

.article-date {
    font-size: 11px;
    color: #bdc3c7;
    flex-shrink: 0;
}

.see-more {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: #3498db;
    background: #f0f7ff;
    transition: background 0.2s;
    text-decoration: none;
    font-weight: 500;
}
.see-more:hover {
    background: #e1f0ff;
}

/* 热门文章 */
.hot-section {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px dashed #e0e6ed;
}
.hot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
}
.hot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
    min-width: 0;
}
.hot-item:hover {
    background: linear-gradient(90deg, #f0f7ff 0%, #f7fbff 100%);
    transform: translateX(2px);
}
.hot-item:hover .hot-title {
    color: #3498db;
}
.hot-rank {
    width: 28px;
    height: 28px;
    background: #eef1f5;
    color: #8a96a3;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}
.hot-item:nth-child(1) .hot-rank {
    background: linear-gradient(135deg, #FFB547 0%, #F59E0B 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}
.hot-item:nth-child(2) .hot-rank {
    background: linear-gradient(135deg, #B8C4CE 0%, #8A96A3 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(138, 150, 163, 0.35);
}
.hot-item:nth-child(3) .hot-rank {
    background: linear-gradient(135deg, #D89060 0%, #B87333 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(184, 115, 51, 0.35);
}
.hot-title {
    flex: 1;
    font-size: 14px;
    color: #34495e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
    min-width: 0;
}
.hot-views {
    font-size: 12px;
    color: #b0bac5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 3px;
}
.hot-views::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: currentColor;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/><circle cx='12' cy='12' r='3'/></svg>") no-repeat center/contain;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/><circle cx='12' cy='12' r='3'/></svg>") no-repeat center/contain;
    opacity: 0.6;
}

/* 底部 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 24px 20px;
    margin-top: 48px;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 32px;
}
.footer-brand h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #3498db;
}
.footer-brand p {
    font-size: 13px;
    color: #bdc3c7;
    line-height: 1.7;
}
.footer-col h4 {
    font-size: 15px;
    margin-bottom: 14px;
    color: #fff;
    font-weight: 600;
}
.footer-col a {
    display: block;
    font-size: 13px;
    color: #bdc3c7;
    margin-bottom: 8px;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: #3498db;
}
.footer-bottom {
    max-width: 1280px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid #34495e;
    text-align: center;
    font-size: 12px;
    color: #7f8c8d;
}

/* 响应式 */
@media (max-width: 1200px) {
    .container { padding: 28px 20px; }
    .intro-accordion { grid-template-columns: repeat(3, 1fr); }
    .accordion { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { grid-template-columns: repeat(3, 1fr); }
    .hot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    .container { padding: 28px 20px; }
    .intro-accordion { grid-template-columns: repeat(2, 1fr); }
    .accordion { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
    .hot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .container { padding: 24px 16px; }
    .intro-accordion { grid-template-columns: repeat(2, 1fr); }
    .accordion { grid-template-columns: 1fr; gap: 16px; }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
    .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .hot-grid { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 480px) {
    .container { padding: 20px 12px; }
    .intro-accordion { grid-template-columns: 1fr; }
    .accordion { grid-template-columns: 1fr; gap: 12px; }
    .footer-inner { grid-template-columns: 1fr; }
    .section-title h2 { font-size: 18px; }
    .section-desc { font-size: 12px; }
    .accordion-header { padding: 14px 16px; }
    .accordion-icon { width: 36px; height: 36px; font-size: 13px; }
    .accordion-info h3 { font-size: 14px; }
    .accordion-info p { font-size: 11px; }
    .article-item { padding: 8px 16px; }
    .article-title { font-size: 12px; }
    .article-date { font-size: 10px; }
    .hot-grid { grid-template-columns: 1fr; gap: 6px; }
    .hot-item { padding: 6px 0; }
    .hot-title { font-size: 13px; }
    .hot-rank { width: 22px; height: 22px; font-size: 11px; }
}