/* ================================
   全局变量与基础重置
   ================================ */
:root {
    --primary: #FF5A5F;
    --primary-dark: #E64852;
    --secondary: #FFD600;
    --dark: #333333;
    --light: #F8F8F8;
    --gray-light: #F8F8F8;
    --gray-medium: #E5E5E5;
    --gray-dark: #666666;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --container-max: 1200px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

/* ================================
   通用布局容器与按钮
   ================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    line-height: 1.2;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
    padding: 12px 24px;
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* ================================
   导航栏
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.navbar.nav-scrolled {
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo {
    height: 32px;
    width: auto;
}

.brand-name {
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
}

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-icon {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 12px 20px;
}

.mobile-menu a {
    padding: 12px 0;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-medium);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--primary);
}

/* ================================
   首屏英雄区
   ================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #FF7A7F 100%);
    color: var(--white);
    padding: 120px 0 64px;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 32px;
    max-width: 480px;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 480px;
}

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

.stat-num {
    font-size: 30px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    opacity: 0.85;
    margin-top: 4px;
}

.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone {
    max-width: 320px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotate(3deg);
    transition: transform var(--transition);
}

.hero-phone:hover {
    transform: rotate(0deg);
}

.hero-badge {
    position: absolute;
    top: -12px;
    right: -8px;
    background: var(--secondary);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ================================
   通用区块标题
   ================================ */
.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-head.left {
    text-align: left;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-sub {
    color: var(--gray-dark);
    font-size: 15px;
}

/* ================================
   赚钱攻略区
   ================================ */
.strategy {
    background: var(--gray-light);
    padding: 64px 0;
}

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

.strategy-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.strategy-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.strategy-step {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.strategy-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.strategy-text {
    color: var(--gray-dark);
    font-size: 14px;
}

/* ================================
   任务大厅区
   ================================ */
.tasks {
    background: var(--white);
    padding: 64px 0;
}

.tasks-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.task-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.task-tab {
    padding: 6px 16px;
    background: var(--gray-light);
    color: var(--gray-dark);
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
}

.task-tab.active,
.task-tab:hover {
    background: rgba(255, 90, 95, 0.1);
    color: var(--primary);
}

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

.task-card {
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    transition: transform var(--transition), box-shadow var(--transition);
}

.task-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.task-thumb {
    width: 96px;
    height: 96px;
    object-fit: cover;
    flex-shrink: 0;
}

.task-body {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.task-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.task-name {
    font-size: 16px;
    font-weight: 700;
}

.task-price {
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}

.task-desc {
    color: var(--gray-dark);
    font-size: 13px;
    margin-bottom: 12px;
}

.task-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.task-quota {
    color: var(--gray-dark);
    font-size: 12px;
}

.tasks-more {
    text-align: center;
    margin-top: 40px;
}

/* ================================
   收益展示区
   ================================ */
.earnings {
    background: var(--gray-light);
    padding: 64px 0;
}

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

.earnings-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.earnings-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.earnings-user {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 16px;
    font-weight: 700;
}

.user-role {
    color: var(--gray-dark);
    font-size: 13px;
}

.earnings-quote {
    color: var(--dark);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.7;
}

.star-list {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.star {
    width: 18px;
    height: 18px;
    display: inline-block;
    background-color: var(--gray-medium);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/></svg>") center / contain no-repeat;
}

.star.on {
    background-color: #FFB400;
}

.star.half {
    background: linear-gradient(90deg, #FFB400 50%, var(--gray-medium) 50%);
}

.earnings-income {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--gray-medium);
}

.income-label {
    color: var(--gray-dark);
    font-size: 14px;
}

.income-value {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
}

/* 平台数据统计 */
.platform-stats {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.stats-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.stats-desc {
    color: var(--gray-dark);
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stats-item {
    background: var(--gray-light);
    padding: 20px 16px;
    border-radius: var(--radius-sm);
}

.stats-num {
    color: var(--primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stats-label {
    color: var(--gray-dark);
    font-size: 13px;
}

/* ================================
   APP下载区
   ================================ */
.download {
    background: linear-gradient(135deg, var(--primary) 0%, #FF7A7F 100%);
    color: var(--white);
    padding: 64px 0;
}

.download-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.download-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.download-desc {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 24px;
}

.download-list {
    margin-bottom: 32px;
}

.download-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
}

.download-list li::before {
    content: "";
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

.download-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.btn-light .btn-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.btn-light:first-child .btn-icon {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF5A5F'><path d='M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.26 9.4c.66-1.52 2.31-2.5 4.09-2.55 1.28-.05 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.66.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.08-.42 1.44-1.41 2.86M12.94 3.96c.69-.83 1.83-1.46 2.79-1.46.13 1.54-.39 3.04-1.18 4.08-.71.94-1.93 1.66-3.1 1.59-.15-1.49.59-3.01 1.49-3.91z'/></svg>");
}

.btn-light:last-child .btn-icon {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF5A5F'><path d='M17.523 15.3414c-.5511.3492-.9515.5492-1.5 0-.5-.4-.65-.4-.5-.4-.4.15-.55.45-.65.7-.1.25-.1.45.05.7.15.2.35.3.6.3.25 0 .5-.1.7-.25.25-.2.4-.45.5-.75.1-.3.1-.5-.1-.7-.2-.15-.45-.15-.7-.05z M8.5 3c-2.65 0-4.8 2.15-4.8 4.8 0 2.65 2.15 4.8 4.8 4.8 2.65 0 4.8-2.15 4.8-4.8C13.3 5.15 11.15 3 8.5 3z'/></svg>");
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.btn-label {
    font-size: 11px;
    font-weight: 400;
}

.btn-name {
    font-size: 15px;
    font-weight: 700;
}

.download-qr {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qr-box {
    background: var(--white);
    padding: 8px;
    border-radius: var(--radius-sm);
}

.qr-img {
    width: 96px;
    height: 96px;
}

.qr-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.qr-sub {
    font-size: 13px;
    opacity: 0.85;
}

.download-media {
    position: relative;
    display: flex;
    justify-content: center;
}

.download-phone {
    max-width: 320px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.download-badge {
    position: absolute;
    top: -12px;
    right: -8px;
    background: var(--secondary);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

/* ================================
   常见问题区
   ================================ */
.faq {
    background: var(--white);
    padding: 64px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

.faq-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    position: relative;
    transition: transform var(--transition);
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: var(--primary);
    border-radius: 2px;
}

.faq-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.faq-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
    transition: transform var(--transition);
}

.faq-item.active .faq-icon::after {
    transform: translateX(-50%) scaleY(0);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), padding var(--transition);
    padding: 0 20px;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-content {
    max-height: 300px;
    padding: 16px 20px 20px;
    border-top: 1px solid var(--gray-medium);
}

.faq-content p {
    color: var(--gray-dark);
    font-size: 14px;
    line-height: 1.8;
}

/* ================================
   页脚
   ================================ */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--gray-medium);
    font-size: 14px;
    line-height: 1.7;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-medium);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 24px;
    text-align: center;
    color: var(--gray-medium);
    font-size: 13px;
}

.floating-service {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--primary) 0%, #FF7A7F 100%);
    color: var(--white);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(255, 90, 95, 0.35);
    z-index: 1200;
    transition: transform var(--transition), box-shadow var(--transition);
    animation: floatService 2.1s ease-in-out infinite;
}

.floating-service:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 35px rgba(255, 90, 95, 0.45);
}

.float-service {
    animation: none;
}

.floating-service-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    flex-shrink: 0;
}

.floating-service-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.floating-service-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

@keyframes floatService {
    0%,
    100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ================================
   响应式适配：平板与移动端
   ================================ */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-menu.open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 999;
    }

    .hero-inner,
    .download-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-media,
    .download-media {
        display: none;
    }

    .strategy-grid,
    .earnings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .task-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 100px 0 48px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stat-num {
        font-size: 22px;
    }

    .stat-label {
        font-size: 12px;
    }

    .hero-actions,
    .download-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .strategy-grid,
    .earnings-grid,
    .task-grid,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .tasks-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .task-card {
        flex-direction: column;
    }

    .task-thumb {
        width: 100%;
        height: 140px;
    }

    .platform-stats {
        padding: 20px;
    }

    .nav-actions .btn-primary {
        display: none;
    }

    .section-title {
        font-size: 24px;
    }

    .download-qr {
        flex-direction: column;
        align-items: flex-start;
    }

    .floating-service {
        right: 16px;
        bottom: 16px;
        padding: 10px 14px;
    }

    .floating-service-text {
        font-size: 12px;
    }
}

/* ================================
   动画偏好：尊重用户减少动画设置
   ================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
