* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-card: #2a2a2a;
    --bg-input: #333;
    --accent: #FF6B00;
    --accent-light: #FF9E44;
    --accent-gradient: linear-gradient(135deg, #FF6B00, #FF9E44);
    --text-primary: #fff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-hint: rgba(255, 255, 255, 0.4);
    --border: rgba(255, 255, 255, 0.08);
    --green: #00D26A;
    --blue: #4A90E2;
    --purple: #9B59B6;
    --pink: #E91E63;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 80px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.header-title {
    font-size: 17px;
    font-weight: 600;
}

.header-back,
.header-more {
    position: absolute;
    font-size: 18px;
    color: var(--text-secondary);
}

.header-back {
    left: 16px;
}

.header-more {
    right: 16px;
}

.container {
    padding: 12px;
}

.video-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.video-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-input-wrapper {
    display: flex;
    gap: 8px;
}

.video-input {
    flex: 1;
    background: var(--bg-input);
    border: none;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
}

.video-input::placeholder {
    color: var(--text-hint);
}

.paste-btn {
    background: var(--accent-gradient);
    border: none;
    border-radius: 8px;
    width: 44px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    color: var(--accent);
}

.card-count {
    font-size: 12px;
    color: var(--accent);
    background: rgba(255, 107, 0, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
}

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

.boost-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px;
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    font-size: 12px;
    gap: 8px;
}

.boost-item i {
    font-size: 20px;
    color: var(--text-secondary);
}

.boost-item.selected {
    background: rgba(255, 107, 0, 0.15);
    border-color: var(--accent);
}

.boost-item.selected i {
    color: var(--accent);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.audience-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    gap: 6px;
}

.audience-item i {
    font-size: 28px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.audience-item span {
    font-size: 14px;
    font-weight: 500;
}

.audience-item small {
    font-size: 11px;
    color: var(--text-hint);
}

.audience-item.selected {
    background: rgba(255, 107, 0, 0.15);
    border-color: var(--accent);
}

.audience-item.selected i {
    color: var(--accent);
}

.section-group {
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.section-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.section-item:last-child {
    border-bottom: none;
}

.section-item:active {
    background: var(--bg-secondary);
}

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

.section-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: var(--accent-gradient);
    color: #fff;
}

.section-icon.green {
    background: linear-gradient(135deg, #00D26A, #00E676);
}

.section-icon.blue {
    background: linear-gradient(135deg, #4A90E2, #64B5F6);
}

.section-icon.purple {
    background: linear-gradient(135deg, #9B59B6, #AB47BC);
}

.section-icon.pink {
    background: linear-gradient(135deg, #E91E63, #EC407A);
}

.section-left span {
    font-size: 14px;
}

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

.section-value {
    font-size: 13px;
    color: var(--text-hint);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.section-right i {
    color: var(--text-hint);
    font-size: 12px;
}

.switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch label {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-input);
    border-radius: 24px;
    transition: .3s;
}

.switch label::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .3s;
}

.switch input:checked+label {
    background: var(--accent-gradient);
}

.switch input:checked+label::before {
    transform: translateX(20px);
}

.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--border);
}

.btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-reset {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.btn-submit {
    background: var(--accent-gradient);
    color: #fff;
}

.sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 1000;
}

.sheet-overlay.show {
    display: block;
}

.sheet-panel {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-radius: 16px 16px 0 0;
    max-height: 75vh;
    z-index: 1001;
    flex-direction: column;
    animation: slideUp .3s ease;
}

.sheet-panel.show {
    display: flex;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sheet-title {
    font-size: 16px;
    font-weight: 600;
}

.sheet-close {
    font-size: 20px;
    color: var(--text-hint);
    cursor: pointer;
}

.sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.sheet-footer {
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.sheet-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-input);
    margin: 12px 16px;
    border-radius: 8px;
}

.search-box i {
    color: var(--text-hint);
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
}

.search-box input::placeholder {
    color: var(--text-hint);
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    min-height: 40px;
}

.empty-tip {
    font-size: 13px;
    color: var(--text-hint);
}

.selected-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 107, 0, 0.2);
    border: 1px solid var(--accent);
    border-radius: 16px;
    font-size: 12px;
    color: var(--accent);
}

.selected-tag i {
    font-size: 10px;
    cursor: pointer;
}

.industry-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.industry-tag {
    padding: 8px 14px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .2s;
}

.industry-tag:active {
    transform: scale(.96);
}

.industry-tag.selected {
    background: rgba(255, 107, 0, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

.industry-tag.hidden {
    display: none;
}

.region-split {
    display: flex;
    height: 320px;
}

.province-list {
    width: 35%;
    background: var(--bg-card);
    overflow-y: auto;
    border-right: 1px solid var(--border);
}

.province-item {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

.province-item:active,
.province-item.active {
    background: var(--bg-secondary);
    color: var(--accent);
}

.city-list {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
}

.city-placeholder {
    width: 100%;
    text-align: center;
    padding: 40px 0;
    color: var(--text-hint);
    font-size: 13px;
}

.city-tag {
    padding: 8px 14px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .2s;
    height: fit-content;
}

.city-tag.selected {
    background: rgba(255, 107, 0, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

.city-tag.select-all {
    background: rgba(255, 107, 0, 0.1);
    border-color: rgba(255, 107, 0, 0.3);
    color: var(--accent-light);
}

.age-mode-switch {
    display: flex;
    background: var(--bg-input);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
}

.age-mode {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all .2s;
}

.age-mode.active {
    background: var(--accent-gradient);
    color: #fff;
}

.radar-container {
    width: 180px;
    height: 180px;
    margin: 20px auto;
    position: relative;
}

.radar-ring {
    position: absolute;
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 50%;
}

.radar-ring.r1 {
    inset: 0;
}

.radar-ring.r2 {
    inset: 25%;
}

.radar-ring.r3 {
    inset: 42%;
}

.radar-line {
    position: absolute;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent));
    top: 50%;
    left: 50%;
    transform-origin: left center;
    animation: radarScan 2s linear infinite;
}

@keyframes radarScan {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.radar-center {
    position: absolute;
    inset: 38%;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.5);
}

.ai-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 16px;
}

.ai-result {
    text-align: center;
    margin-top: 12px;
    font-size: 15px;
    color: var(--accent);
    font-weight: 500;
}

.age-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 20px 0;
}

.age-tag {
    padding: 14px 24px;
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .2s;
}

.age-tag.selected {
    background: rgba(255, 107, 0, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    max-width: 280px;
    width: 100%;
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(255, 107, 0, 0.2);
    color: var(--accent);
}

.modal-icon.success {
    background: var(--accent-gradient);
    color: #fff;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.progress-wrap {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    width: 0%;
    transition: width .3s;
}

.progress-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 10px;
}

.modal-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: none;
}

.modal-btn.show {
    display: block;
}

/* 卡密激活区 */
.activation-card {
    border: 2px dashed var(--accent);
    background: rgba(255, 107, 0, 0.05);
}

.activation-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 14px;
    padding: 10px 12px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 8px;
}

.activation-tip i {
    font-size: 14px;
}

.activation-input {
    display: flex;
    gap: 10px;
}

.activation-input input {
    flex: 1;
    padding: 12px 14px;
    background: var(--bg-input);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.activation-input input::placeholder {
    color: var(--text-hint);
    text-transform: none;
    letter-spacing: normal;
}

.activation-input button {
    padding: 12px 20px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.activated-card {
    background: rgba(0, 210, 106, 0.1);
    border: 1px solid var(--green);
}

.activated-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--green);
}

.activated-info i {
    font-size: 24px;
}

.activated-info span {
    font-size: 14px;
}

.activated-info b {
    margin-left: 4px;
}

.activated-info small {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-secondary);
}

/* 自定义Toast提示弹窗 */
.toast-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.toast-overlay.show {
    display: flex;
}

.toast-box {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    max-width: 280px;
    width: 100%;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.toast-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(255, 107, 0, 0.2);
    color: var(--accent);
}

.toast-icon.success {
    background: rgba(0, 210, 106, 0.2);
    color: var(--green);
}

.toast-icon.error {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.toast-msg {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.toast-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}