/**
 * 全局公共样式
 * 页面特有样式（登录、购买、首页等）
 * @package ZhutiTu
 */


#spa-toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    pointer-events: none;
}

.spa-toast-item {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-50px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #fff;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    box-shadow:
        0 6px 16px 0 rgba(0, 0, 0, 0.08),
        0 3px 6px -4px rgba(0, 0, 0, 0.12),
        0 9px 28px 8px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: auto;
    white-space: nowrap;
    will-change: transform, opacity;
}

.spa-toast-item.show {
    opacity: 1;
}

.spa-toast-item.leaving {
    opacity: 0;
    transform: translateX(-50%) translateY(-40px) scale(0.9) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease-out !important;
}

.spa-toast-item i {
    font-size: 16px;
    flex-shrink: 0;
}


.spa-toast-item.success { background: #f6ffed; }
.spa-toast-item.success i { color: #52c41a; }

.spa-toast-item.error { background: #fff2f0; }
.spa-toast-item.error i { color: #ff4d4f; }

.spa-toast-item.warning { background: #fffbe6; }
.spa-toast-item.warning i { color: #faad14; }

.spa-toast-item.info { background: #e6f4ff; }
.spa-toast-item.info i { color: #1677ff; }


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn i {
    font-size: 0.9rem;
}


.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}


.btn-secondary {
    background: var(--accent-soft);
    color: var(--text-main);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border-color);
}


.btn-ghost {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--accent-soft);
    border-color: var(--text-muted);
}


.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
}


.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
}


.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
}

.btn-sm i {
    font-size: 0.8rem;
}


.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-lg i {
    font-size: 1rem;
}


.btn-block {
    width: 100%;
}


.btn-icon {
    padding: 10px;
    width: 40px;
    height: 40px;
}

.btn-icon.btn-sm {
    padding: 8px;
    width: 32px;
    height: 32px;
}


.btn-group {
    display: flex;
    gap: 12px;
}

.btn-group.right {
    justify-content: flex-end;
}


.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 300px;
}

.empty-state a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
}

.empty-state a i {
    font-size: 1rem;
    color: white;
    margin: 0;
}

.empty-state a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}


.empty-state.compact {
    padding: 40px 20px;
}

.empty-state.compact i {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.empty-state.compact p {
    margin-bottom: 16px;
}

.empty-state.compact a {
    padding: 12px 24px;
    font-size: 0.9rem;
    gap: 8px;
}

.empty-state.compact a i {
    font-size: 0.9rem;
}


.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-modal.active {
    opacity: 1;
    visibility: visible;
}

.settings-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
}

.settings-modal-content {
    position: relative;
    width: 90%;
    max-width: 440px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.settings-modal.active .settings-modal-content {
    transform: scale(1) translateY(0);
}

.settings-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--accent-soft);
    background: var(--card-bg);
}

.settings-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.settings-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.settings-modal-close:hover {
    background: var(--accent-soft);
    color: var(--text-main);
}

.settings-modal-body {
    padding: 24px;
}


.settings-form-group {
    margin-bottom: 20px;
}

.settings-form-group:last-of-type {
    margin-bottom: 0;
}

.settings-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.settings-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--card-bg);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.settings-form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.settings-form-group input::placeholder {
    color: var(--text-muted);
}


.settings-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.settings-btn-cancel {
    padding: 10px 20px;
    background: var(--accent-soft);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-btn-cancel:hover {
    background: var(--border-color);
}

.settings-btn-submit {
    padding: 10px 24px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-btn-submit:hover {
    background: var(--primary-dark);
}

.settings-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.settings-btn-submit.small {
    padding: 8px 16px;
    font-size: 0.85rem;
    width: 100%;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}


#captcha-modal.modal-overlay {
    z-index: 1100;
}


.modal-card {
    background: #fff;
    width: 280px;
    padding: 32px 24px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    box-shadow:
        0 15px 30px -5px rgba(30, 41, 59, 0.1),
        0 0 50px -20px rgba(37, 99, 235, 0.25);
    transform: scale(0.92) translateY(20px);
    transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-card.wide {
    width: 340px;
}


.icon-box {
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: -58px auto 12px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    position: relative;
    z-index: 10;
}

.icon-box.green {
    background: #10b981;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.icon-box.orange {
    background: #f59e0b;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.icon-box.dark {
    background: #334155;
    box-shadow: 0 8px 20px rgba(51, 65, 85, 0.3);
}

.icon-box.small {
    width: 48px;
    height: 48px;
    font-size: 20px;
    margin-top: -56px;
}


.close-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    font-size: 14px;
}

.close-icon:hover {
    background: #f1f5f9;
    color: var(--text-main);
}


.modal-card h3 {
    color: var(--text-main);
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.modal-card .desc {
    color: var(--text-muted);
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 1.5;
    padding: 0 5px;
}

.modal-card .highlight {
    color: var(--text-main);
    font-weight: 600;
    font-family: monospace;
}


.soft-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    height: 46px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    background: var(--primary-light, #eff6ff);
    color: var(--text-main);
    outline: none;
    transition: 0.2s;
    margin-bottom: 16px;
}

.soft-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.soft-input::placeholder {
    color: #cbd5e1;
}

.soft-textarea {
    height: 100px;
    resize: none;
    font-family: inherit;
}


.soft-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.soft-select:focus {
    background-color: #fff;
}


.custom-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.custom-dropdown-trigger {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    height: 46px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    background: var(--primary-light, #eff6ff);
    color: var(--text-main);
    outline: none;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.custom-dropdown-trigger:hover {
    border-color: var(--primary);
}

.custom-dropdown.open .custom-dropdown-trigger {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.custom-dropdown-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-dropdown-text.placeholder {
    color: #cbd5e1;
}

.custom-dropdown-arrow {
    color: #94a3b8;
    font-size: 12px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.custom-dropdown.open .custom-dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.custom-dropdown.open .custom-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown-option {
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-dropdown-option:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.custom-dropdown-option:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.custom-dropdown-option:hover {
    background: var(--primary-light, #eff6ff);
    color: var(--primary);
}

.custom-dropdown-option.selected {
    background: var(--primary);
    color: white;
}

.custom-dropdown-option.selected:hover {
    background: var(--primary-dark);
    color: white;
}

.custom-dropdown-option i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}


.custom-dropdown input[type="hidden"] {
    display: none;
}


.ticket-type-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.ticket-type-item {
    display: block;
    cursor: pointer;
}

.ticket-type-item input {
    display: none;
}

.ticket-type-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: var(--primary-light, #eff6ff);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.ticket-type-label i {
    font-size: 12px;
}

.ticket-type-item input:checked + .ticket-type-label {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ticket-type-item:hover .ticket-type-label {
    background: #fff;
    border-color: var(--border-color);
}


.ticket-priority-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.priority-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.ticket-priority-item {
    display: inline-flex;
    cursor: pointer;
}

.ticket-priority-item input {
    display: none;
}

.ticket-priority-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--primary-light, #eff6ff);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.ticket-priority-label.high {
    color: #f59e0b;
}

.ticket-priority-label.urgent {
    color: #ef4444;
}

.ticket-priority-item input:checked + .ticket-priority-label {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ticket-priority-item input:checked + .ticket-priority-label.high {
    border-color: #f59e0b;
    color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.ticket-priority-item input:checked + .ticket-priority-label.urgent {
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.ticket-priority-item:hover .ticket-priority-label {
    background: #fff;
    border-color: var(--border-color);
}


.input-merged-group {
    display: flex;
    align-items: center;
    background: var(--primary-light, #eff6ff);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 4px 4px 4px 12px;
    height: 46px;
    margin-bottom: 16px;
    box-sizing: border-box;
    transition: 0.2s;
}

.input-merged-group:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-merged-group input {
    border: none;
    background: transparent;
    flex: 1;
    outline: none;
    font-size: 14px;
    color: var(--text-main);
    width: 100%;
    font-weight: 500;
}

.input-merged-group input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}


.btn-send-code {
    border: none;
    background: #fff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: 32px;
}

.btn-send-code:hover {
    background: #f8fafc;
    color: var(--primary-dark);
}

.btn-send-code:active {
    transform: scale(0.96);
}

.btn-send-code:disabled {
    color: #94a3b8;
    background: transparent;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}


.modal-card .btn-primary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: 0.2s;
}

.modal-card .btn-primary:hover {
    background: var(--primary-dark);
}

.modal-card .btn-primary:active {
    transform: scale(0.98);
}


.link-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.link-action {
    cursor: pointer;
    transition: 0.2s;
}

.link-action:hover {
    color: var(--primary);
}


.captcha-box {
    position: relative;
    height: 44px;
    background-color: var(--primary-light, #eff6ff);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid transparent;
    transition: 0.2s;
}

.captcha-box:hover {
    border-color: var(--primary);
}

.captcha-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.captcha-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.05);
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.2s;
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
}

.captcha-box:hover .captcha-overlay {
    opacity: 1;
}


.withdraw-info {
    margin-bottom: 24px;
    text-align: left;
    background: #f8fafc;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.withdraw-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 5px;
}

.withdraw-info-row:last-child {
    margin-bottom: 0;
}

.withdraw-info-row .label {
    color: var(--text-muted);
}

.withdraw-info-row .value {
    font-weight: 600;
    color: var(--text-main);
}

.withdraw-info-row .fee {
    color: #ef4444;
}


.shake {
    animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
}


.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: var(--accent-soft, #f1f5f9);
    border-radius: var(--radius-sm);
}

.auth-tab {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab:hover {
    color: var(--text-main);
}

.auth-tab.active {
    background: #fff;
    color: var(--text-main);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}


.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}


.login-method-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.login-method {
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    padding: 2px 4px;
}

.login-method:hover {
    color: var(--text-main);
}

.login-method.active {
    color: var(--primary);
    font-weight: 600;
}

.login-method-divider {
    color: var(--border-color);
}


.social-login-section {
    margin-top: 24px;
    padding-top: 20px;
}

.social-divider {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.social-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.social-divider span {
    position: relative;
    background: #fff;
    padding: 0 12px;
    font-size: 12px;
    color: var(--text-muted);
}


.social-login-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-login-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-login-btn.wechat {
    color: #07c160;
    border-color: #07c160;
}

.social-login-btn.wechat:hover {
    background: #07c160;
    color: #fff;
}

.social-login-btn.qq {
    color: #12b7f5;
    border-color: #12b7f5;
}

.social-login-btn.qq:hover {
    background: #12b7f5;
    color: #fff;
}

.social-login-btn.github {
    color: #24292e;
    border-color: #24292e;
}

.social-login-btn.github:hover {
    background: #24292e;
    color: #fff;
}

.social-login-btn.google {
    color: #ea4335;
    border-color: #ea4335;
}

.social-login-btn.google:hover {
    background: #ea4335;
    color: #fff;
}

.social-login-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}


#purchaseModal.modal-overlay {
    z-index: 1050;
}


.purchase-steps {
    gap: 0;
}

.purchase-step {
    display: flex;
    align-items: center;
    gap: 6px;
}

.purchase-step .step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.purchase-step .step-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.purchase-step.active .step-dot,
.purchase-step.completed .step-dot {
    background: var(--primary);
    color: white;
}

.purchase-step.active .step-text {
    color: var(--text-main);
}

.purchase-steps .step-line {
    width: 20px;
    height: 2px;
    background: var(--border-color);
    margin: 0 6px;
    transition: all 0.3s ease;
}

.purchase-steps .step-line.completed {
    background: var(--primary);
}


.purchase-step-content {
    display: none;
}

.purchase-step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


.purchase-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.purchase-product-info img {
    width: 56px;
    height: 42px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.purchase-product-meta h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.purchase-product-meta p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}


.purchase-price-box {
    padding: 14px;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
}

.purchase-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.purchase-price-row span:first-child {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
}

.purchase-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.purchase-features {
    display: flex;
    gap: 16px;
}

.purchase-features span {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.purchase-features i {
    color: var(--success);
    font-size: 10px;
}


.purchase-coupon-box {
    margin-top: 12px;
    padding: 12px;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
}

.coupon-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.coupon-input-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: #fff;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.coupon-input-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.coupon-input-row input::placeholder {
    text-transform: none;
    color: var(--text-muted);
}

.coupon-input-row .btn-sm,
.coupon-input-row .btn-primary {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    flex-grow: 0;
    width: auto;
    line-height: 1;
}

.coupon-status {
    margin-top: 8px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.coupon-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.coupon-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.coupon-discount {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
    text-align: right;
}


.purchase-gateways {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.gateway-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    line-height: 1;
    background: var(--accent-soft);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gateway-item:hover {
    background: #fff;
    border-color: var(--border-color);
}

.gateway-item.selected {
    background: rgba(37, 99, 235, 0.05);
    border-color: var(--primary);
}

.gateway-item i {
    display: inline-flex;
    align-items: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1;
}

.gateway-item span {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1;
}


.purchase-qrcode {
    position: relative;
    display: inline-block;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.purchase-qrcode img {
    display: block;
    width: 160px;
    height: 160px;
}

.purchase-qrcode .qrcode-expired {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: var(--radius-md);
}

.purchase-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}


.purchase-success-info {
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: left;
}

.purchase-success-info .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.purchase-success-info .info-row span:first-child {
    color: var(--text-muted);
}

.purchase-success-info .info-row span:last-child {
    font-weight: 600;
    color: var(--text-main);
}


.purchase-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.purchase-footer .btn-ghost {
    flex: 0 0 auto;
}

.purchase-footer .btn-primary {
    flex: 1;
}


.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.loading-placeholder i {
    color: var(--primary);
}


.coupon-claim-section {
    margin: 60px auto;
    max-width: 1080px;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.coupon-section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}

.coupon-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coupon-section-title i {
    color: var(--primary);
}


.coupon-cards-container {
    min-height: 100px;
}

.coupon-cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.coupon-loading,
.coupon-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.coupon-loading i {
    color: var(--primary);
}


.coupon-card {

    --card-bg: #ffffff;
    --card-radius: 18px;
    --c-accent-bg: #f3f4f6;
    --c-accent-text: #4b5563;

    display: flex;
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 110px;
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}


.coupon-card.coupon-type-percent {

    --c-accent-bg: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    --c-accent-text: #2563eb;
    --btn-bg: #2563eb;
    --btn-shadow: rgba(37, 99, 235, 0.2);
}

.coupon-card.coupon-type-fixed {

    --c-accent-bg: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    --c-accent-text: #e11d48;
    --btn-bg: #e11d48;
    --btn-shadow: rgba(225, 29, 72, 0.2);
}

.coupon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.08);
}


.coupon-card-left {
    flex: 0 0 120px;
    background: var(--c-accent-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}


.coupon-card-left::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--card-bg);
    border-radius: 50%;
    box-shadow: inset 2px 0 3px -1px rgba(0,0,0,0.05);
}


.coupon-value {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: var(--c-accent-text);
    margin-bottom: 6px;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.coupon-type {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-accent-text);
    opacity: 0.8;
}


.coupon-card-right {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-width: 0;
}

.coupon-condition {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coupon-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.coupon-expires {
    display: flex;
    align-items: center;
    gap: 5px;
}

.coupon-remaining {
    font-size: 12px;
    padding: 2px 6px;
    background: var(--bg-muted);
    border-radius: 4px;
    color: var(--text-light);
}


.coupon-claim-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);


    padding: 8px 18px;
    background: var(--btn-bg);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--btn-shadow);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.coupon-claim-btn:hover:not([disabled]) {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 15px var(--btn-shadow);
}

.coupon-claim-btn:active:not([disabled]) {
    transform: translateY(-50%) scale(0.95);
}

.coupon-claim-btn:disabled {
    background: var(--bg-muted);
    color: var(--text-light);
    box-shadow: none;
    cursor: not-allowed;
}


.coupon-card.claimed {
    opacity: 0.6;
    filter: grayscale(1);
    box-shadow: none;
    border-color: var(--border-color);
}

.coupon-card.claimed .coupon-claim-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    box-shadow: none;
}


@media (max-width: 480px) {
    .coupon-card {
        height: auto;
        min-height: 100px;
    }

    .coupon-card-left {
        flex: 0 0 90px;
    }

    .coupon-value {
        font-size: 24px;
    }

    .coupon-card-right {
        padding-right: 16px;

        padding-bottom: 50px;
    }

    .coupon-claim-btn {
        top: auto;
        bottom: 12px;
        right: 12px;
        transform: none;
        padding: 6px 14px;
        width: auto;
    }

    .coupon-claim-btn:hover:not([disabled]) {
        transform: scale(1.05);
    }
}


.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.section-badge i {
    color: var(--accent-warm, #f59e0b);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 20px 0 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}


.features-section {
    position: relative;
    overflow: hidden;
}
.features-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: left;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg, 20px);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(30, 41, 59, 0.15);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.06);
    border-radius: 16px;
    color: var(--primary);
    font-size: 22px;
    position: relative;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}


.stats-section {
    padding: 80px 24px;
    background: var(--text-main);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, #bfdbfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.7;
    font-weight: 500;
}


.cta-section {
    padding: 100px 24px;
    background: linear-gradient(180deg, var(--bg-page) 0%, rgba(254, 243, 199, 0.15) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-blob-2) 0%, var(--accent-blob-3) 100%);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: var(--text-main);
    color: #fff;
    border-radius: var(--radius-md, 8px);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 24px -6px rgba(30, 41, 59, 0.35);
}

.btn-cta-primary:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 18px 32px -8px rgba(37, 99, 235, 0.45);
    color: #fff;
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    color: var(--text-main);
    border-radius: var(--radius-md, 8px);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.btn-cta-secondary:hover {
    border-color: var(--text-main);
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1);
}


.screenshots-section {
    padding: 48px 0 56px;
    background: #f8fafc;
}

.screenshots-gallery {
    max-width: 720px;
    margin: 0 auto;
}


.gallery-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #e9ecef;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    background: #f1f3f5;
}

.gallery-main:hover img {
    transform: scale(1.02);
}

.gallery-main .gallery-zoom {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-main:hover .gallery-zoom {
    opacity: 1;
}


.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 4px 0;
}

.gallery-thumb {
    width: 80px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    opacity: 0.6;
    flex-shrink: 0;
}

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    border-color: #4f46e5;
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.screenshot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.screenshot-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.screenshot-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 2;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}


.use-cases-section {
    position: relative;
    overflow: hidden;
    padding: 72px 0 80px;
    background: var(--bg-section-alt, #f8fafc);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.use-case-card {
    padding: 28px 20px;
    text-align: center;
    transition: transform var(--duration-normal, 300ms) var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
               box-shadow var(--duration-normal, 300ms) ease;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(30, 41, 59, 0.1);
}

.use-case-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(99, 102, 241, 0.08));
    border-radius: 16px;
    font-size: 22px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.use-case-card:hover .use-case-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.2);
}

.use-case-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

.use-case-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}


.monetization-section {
    position: relative;
    overflow: hidden;
    padding: 72px 0 80px;
}

.monetization-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.monetization-step {
    text-align: center;
    padding: 20px 16px;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.monetization-step:hover .step-number {
    transform: scale(1.15);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.4);
}

.step-connector {
    position: absolute;
    top: 44px;
    left: calc(50% + 30px);
    width: calc(100% - 60px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), rgba(37, 99, 235, 0.2));
    z-index: 1;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    border: 4px solid transparent;
    border-left-color: var(--primary);
    opacity: 0.4;
}

.monetization-step h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

.monetization-step p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}


.quick-start-section {
    position: relative;
    overflow: hidden;
    padding: 72px 0 80px;
    background: var(--bg-section-alt, #f8fafc);
}

.quick-start-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.quick-start-card {
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-start-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(30, 41, 59, 0.12);
}

.qs-step-badge {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.quick-start-card:hover .qs-step-badge {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.qs-connector {
    position: absolute;
    top: 50%;
    right: -16px;
    transform: translateY(-50%);
    z-index: 5;
    color: var(--primary);
    font-size: 14px;
    opacity: 0.4;
}

.quick-start-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

.quick-start-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}


.faq-section {
    position: relative;
    overflow: hidden;
    padding: 72px 0 80px;
    background: var(--bg-section-alt, #f8fafc);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 24px -8px rgba(30, 41, 59, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.5;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-arrow {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
    padding: 0 24px;
}

.faq-item.open .faq-answer {
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}


@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .monetization-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .step-connector {
        display: none;
    }
    .quick-start-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}


@media (max-width: 768px) {

    #spa-toast-container {
        top: 16px;
        left: 16px;
        right: 16px;
        transform: none;
    }
    .spa-toast-item {
        position: relative;
        left: auto;
        transform: translateY(0) !important;
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
    }
    .spa-toast-item.show {
        transform: translateY(0) !important;
    }


    .settings-modal-content {
        width: 95%;
        margin: 0 auto;
    }


    .feature-card {
        padding: 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .features-grid {
        gap: 16px;
        grid-template-columns: repeat(1, 1fr);
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .use-case-card {
        padding: 24px 20px;
    }
    .monetization-steps {
        gap: 20px;
    }
    .monetization-step {
        padding: 16px;
    }
    .quick-start-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .qs-connector {
        display: none;
    }
    .quick-start-card {
        padding: 24px 20px;
    }
    .faq-question {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.open .faq-answer {
        padding: 0 20px 16px;
    }

    .stats-section {
        padding: 60px 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Lightbox 导航移动端适配 - 移到底部避免遮挡图片 */
    .screenshot-lightbox img {
        max-height: 70vh;
    }
    .lightbox-nav {
        top: auto;
        bottom: 32px;
        transform: none;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(8px);
    }
    .lightbox-prev { left: calc(50% - 56px); }
    .lightbox-next { right: calc(50% - 56px); }
    .lightbox-counter {
        bottom: 80px;
    }
}


@media (max-width: 640px) {

    .coupon-cards-grid {
        grid-template-columns: 1fr;
    }

    .coupon-card-left {
        flex: 0 0 70px;
        padding: 12px 10px;
    }

    .coupon-value {
        font-size: 20px;
    }
}


@media (max-width: 480px) {

    .modal-card {
        width: 90%;
        max-width: 300px;
        padding: 28px 20px 20px;
    }

    .modal-card.wide {
        width: 92%;
        max-width: 340px;
    }

    .icon-box {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-top: -52px;
    }


    #login-modal .modal-card {
        width: 92%;
        max-width: 360px;
    }

    .social-login-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }


    #purchaseModal .modal-card {
        width: 95%;
    }

    .purchase-steps .step-text {
        display: none;
    }

    .purchase-gateways {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   触控设备优化 (Touch Devices)
   确保所有按钮满足 44×44px 最低触控目标
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
    }

    .btn-sm {
        min-height: 40px;
    }

    .close-icon {
        width: 36px;
        height: 36px;
    }

    .settings-modal-close {
        width: 40px;
        height: 40px;
    }

    .faq-question {
        min-height: 48px;
    }

    .custom-dropdown-option {
        padding: 12px;
        min-height: 44px;
    }
}


/* ========== 返回顶部按钮 ========== */

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: var(--z-fixed, 300);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    background: var(--glass-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);

    /* 默认隐藏 */
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition:
        opacity var(--duration-normal) var(--ease-out),
        transform var(--duration-normal) var(--ease-out),
        background var(--duration-fast) var(--ease-in-out),
        color var(--duration-fast) var(--ease-in-out),
        box-shadow var(--duration-fast) var(--ease-in-out);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl), 0 0 20px var(--color-primary-glow);
    transform: translateY(-2px);
}

.back-to-top:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 24px;
        right: 20px;
        font-size: 14px;
    }
}
