:root {
    --primary-color: #ff7a18;
    --primary-dark: #ff5f00;
    --accent-blue: #1233ff;
    --accent-yellow: #ffcf4d;
    --bg-light: #f7f5ff;
    --text-color: #1f1f1f;
    --muted-color: #6d6d6d;
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "HarmonyOS Sans", "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top, #ffefd5, #f5f7ff 45%);
    color: var(--text-color);
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    max-width: 430px;
    margin: 0 auto;
    box-shadow: 0 30px 80px rgba(15, 15, 15, 0.1);
}

header {
    padding: 20px 18px 12px;
}


.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    margin: 0 16px;
    height: 210px;
    background: linear-gradient(135deg, #ffe0b5, #ffc2b5);
    box-shadow: 0 25px 45px rgba(255, 122, 24, 0.35);
}

.banner-carousel .slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
    user-select: none;
    touch-action: pan-y;
}

.banner-carousel .slide {
    min-width: 100%;
    height: 100%;
}

.banner-carousel .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    border: 4px solid rgba(255, 255, 255, 0.4);
}

.banner-carousel .indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.banner-carousel .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.banner-carousel .dot.active {
    transform: scale(1.3);
    background: #fff;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 18px 8px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 16px 8px;
}

.section-title::before {
    content: '';
    width: 6px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
}

.modules-grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 0 16px 8px;
}

.module-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    color: #1f1f1f;
    transition: transform 0.2s ease;
}

.module-card:hover {
    transform: translateY(-2px);
}

.module-image {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: linear-gradient(140deg, #ffffff, #f1f4ff);
    box-shadow: 0 18px 40px rgba(15, 20, 40, 0.16);
    border: 1px solid rgba(18, 51, 255, 0.08);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.module-image:hover {
    box-shadow: 0 22px 50px rgba(15, 20, 40, 0.22);
    transform: scale(1.05);
}

.module-image img,
.module-placeholder {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #243270;
}

.module-card .module-text {
    font-size: 13px;
    color: #1f1f1f;
    font-weight: 600;
}

.module-card .module-subtext {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    width: fit-content;
    margin: 0 auto;
}

.module-card-0 .module-subtext { background: rgba(255,160,0,0.15); color: #d35400; }
.module-card-1 .module-subtext { background: rgba(18,51,255,0.12); color: #1c2fbf; }
.module-card-2 .module-subtext { background: rgba(46,204,113,0.12); color: #13834c; }
.module-card-3 .module-subtext { background: rgba(255,99,132,0.15); color: #c0392b; }
.module-card-4 .module-subtext { background: rgba(155,89,182,0.15); color: #7d3c98; }
.module-card-5 .module-subtext { background: rgba(0,0,0,0.08); color: #2d3436; }

.module-card .title {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.1;
}

.module-card .desc {
    font-size: 11px;
    opacity: 0.75;
}

.card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 16px;
}

.feature-card {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 20px;
    background: #fffdf4;
    box-shadow: 0 12px 30px rgba(255, 193, 56, 0.25);
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(255, 193, 56, 0.35);
}

.feature-card img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.feature-card .title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-card .desc {
    font-size: 13px;
    color: var(--muted-color);
}

.feature-card .btn {
    margin-left: auto;
    background: rgba(255, 122, 24, 0.15);
    color: var(--primary-dark);
    padding: 8px 18px;
    border-radius: 18px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.feature-card .btn:hover {
    background: rgba(255, 122, 24, 0.25);
    transform: scale(1.05);
}

.feature-card .btn:active {
    transform: scale(0.98);
}

.tab-content {
    flex: 1;
    padding-bottom: 90px;
}

.tab-bar {
    position: sticky;
    bottom: 0;
    display: flex;
    background: #fff;
    border-top: 1px solid #f0f2f8;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.06);
}

.tab-item {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    color: var(--muted-color);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: color 0.2s ease;
}

.tab-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-item::before {
    content: '';
    width: 8px;
    height: 8px;
    margin: 0 auto;
    border-radius: 50%;
    background: currentColor;
}

.support-card {
    margin: 18px;
    padding: 24px 20px;
    border-radius: 24px;
    background: linear-gradient(160deg, #ffffff, #f8faff);
    box-shadow: 0 20px 60px rgba(15, 20, 40, 0.1);
    border: 1px solid rgba(200, 210, 240, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.support-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 340px;
}

.support-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 122, 24, 0.1);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
}

.support-info h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.support-tip {
    color: var(--muted-color);
    margin: 0;
    font-size: 13px;
}

.support-item {
    border: none;
    width: 100%;
    background: linear-gradient(135deg, #f8f9ff, #fff);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(18, 51, 255, 0.06);
    border: 1px solid rgba(18, 51, 255, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(18, 51, 255, 0.1);
}

.support-item:active {
    transform: scale(0.98);
}

.support-item .label {
    font-size: 12px;
    color: var(--muted-color);
    margin-bottom: 4px;
}

.support-item .value {
    font-size: 15px;
    font-weight: 600;
    color: #1f1f1f;
}

.copy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.15), rgba(255, 95, 0, 0.1));
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.support-item:hover .copy-icon {
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.25), rgba(255, 95, 0, 0.2));
}

.support-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid rgba(200, 210, 240, 0.4);
}

.qr-wrapper {
    display: inline-flex;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fffaf0, #fff5e8);
    border: 1px solid rgba(255, 180, 0, 0.15);
    box-shadow: 0 8px 24px rgba(255, 180, 0, 0.08);
}

.qr-wrapper img {
    width: 180px;
    height: 180px;
    border-radius: 14px;
    object-fit: cover;
}

.qr-caption {
    font-size: 13px;
    color: var(--muted-color);
    margin: 0;
}

@media (max-width: 480px) {
    .modules-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .support-card {
        margin: 12px;
        padding: 20px 16px;
    }

    .qr-wrapper img {
        width: 160px;
        height: 160px;
    }
}

@media (min-width: 520px) {
    .support-card {
        max-width: 420px;
        margin: 24px auto;
    }
}
