/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body > main {
    flex: 1;
    width: 100%;
}
a { text-decoration: none; color: inherit; }

/* ===== 居中容器 ===== */
.wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 12px;
}

/* ===== 顶部导航栏 ===== */
.header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 12px;
}
.header-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 8px;
}

/* 左侧头像 */
.header-left { flex-shrink: 0; }
.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: block;
    border: 2px solid rgba(255,215,0,0.5);
}

/* 中间网站名称 */
.header-center {
    flex: 1;
    text-align: center;
    min-width: 0;
}
.header-center h1 {
    color: #ffd700;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 右侧咨询文字 */
.header-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
}
.consult-line1 {
    color: #ffd700;
    font-size: 13px;
    font-weight: 600;
}
.consult-line2 {
    color: #aaaacc;
    font-size: 11px;
}

/* ===== 轮播横幅 ===== */
.banner {
    max-width: 720px;
    margin: 12px auto 0;
    padding: 0 12px;
    position: relative;
}
.banner .swiper-slide img {
    width: 100%;
    display: block;
    border-radius: 12px;
}
.swiper-container {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}
.swiper-wrapper {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}
.swiper-slide {
    flex: 0 0 100%;
    width: 100%;
}
.swiper-slide img {
    width: 100%;
    display: block;
}
.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.swiper-pagination .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}
.swiper-pagination .dot.active {
    background: #ffd700;
    width: 20px;
    border-radius: 4px;
}

/* ===== 公告栏 ===== */
.notice-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 696px;
    padding: 10px 12px;
    margin: 12px auto 0;
    background: #fff8e1;
    border-radius: 8px;
}
.notice-icon {
    flex-shrink: 0;
    font-size: 16px;
}
.notice-scroll {
    flex: 1;
    overflow: hidden;
    font-size: 13px;
    color: #8d6e00;
    line-height: 1.5;
    white-space: nowrap;
}
.notice-track {
    display: inline-block;
    animation: marquee 20s linear infinite;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== 分类标题（列表分组用） ===== */
.section-title h2 {
    font-size: 18px;
    color: #1a1a2e;
    padding: 16px 0 8px;
    font-weight: 700;
    border-bottom: 2px solid #ffd700;
    margin-bottom: 12px;
}

/* ===== 产品演示标题 ===== */
.section-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 0 6px;
}
.section-line {
    display: block;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    border-radius: 1px;
}
.section-label {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 4px;
}

/* ===== 分类网格（一行4个） ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px 0;
}
.category-item {
    background: #fff;
    border-radius: 50px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.category-item:active {
    background: #f0f0f0;
    transform: scale(0.95);
}
.category-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}
.category-item.active {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    box-shadow: 0 2px 12px rgba(255,215,0,0.3);
}
.category-item.active .category-name {
    color: #1a1a2e;
    font-weight: 700;
}
/* ===== 列表分组 ===== */
.list-group {
    min-height: 60px;
}
.empty-tip {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}
/* ===== 列表（左侧图片 + 右侧文字） ===== */
.list {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.list-item {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    transition: all 0.25s;
}
.list-item:active {
    transform: scale(0.98);
}
.list-img {
    width: 140px;
    min-height: 130px;
    flex-shrink: 0;
}
.list-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.list-body {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.list-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}
.list-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}
.list-btn {
    align-self: flex-end;
    display: inline-block;
    padding: 6px 20px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a2e;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.25s;
}
.list-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.4);
}

/* ===== 底部版权 ===== */
.footer {
    text-align: center;
    padding: 20px 12px;
    background: #1a1a2e;
    margin-top: auto;
}
.footer p {
    color: #666688;
    font-size: 13px;
    line-height: 1.6;
}
.footer .disclaimer {
    color: #ffd700;
    font-size: 12px;
    margin-top: 6px;
    opacity: 0.8;
}

/* ===== 响应式：手机和平板 ===== */
@media (max-width: 720px) {
    .header-inner { height: 56px; }
    .avatar { width: 36px; height: 36px; }
    .header-center h1 { font-size: 17px; }
    .consult-line1 { font-size: 12px; }
    .consult-line2 { font-size: 10px; }

    .notice-text { font-size: 12px; }

    .notice-bar { margin-left: 12px; margin-right: 12px; }

    .category-grid { gap: 8px; padding: 14px 0; }
    .category-item { padding: 10px 2px; }
    .category-name { font-size: 12px; }

    .list-img { width: 110px; min-height: 110px; }
    .list-body { padding: 10px 12px; }
    .list-title { font-size: 14px; }
    .list-desc { font-size: 12px; }
    .list-btn { font-size: 12px; padding: 5px 16px; }
}
