/* 首页绿色极简覆盖：仅针对首页关键路径，避免破坏业务逻辑 */
:root {
    --color-bg: #f5f8f6;
    --color-surface: #ffffff;
    --color-surface-muted: #f1f5f2;
    --color-text-primary: #162117;
    --color-text-secondary: #3c4c40;
    --color-muted: rgba(22, 33, 23, 0.62);
    --color-brand-700: #0f5f39;
    --color-brand-600: #16794c;
    --color-brand-500: #279f66;
    --color-brand-100: #e8f4ed;
    --color-highlight: #16794c;
    --color-highlight-soft: rgba(22, 121, 76, 0.1);
    --color-highlight-strong: rgba(22, 121, 76, 0.28);
    --color-border: rgba(22, 33, 23, 0.1);
    --color-border-strong: rgba(22, 33, 23, 0.18);
    --elevation-base: none;
    --elevation-soft: none;
    --elevation-card: none;
    --radius-xl: 14px;
    --radius-lg: 12px;
    --radius-md: 10px;
    --radius-sm: 9px;
    --radius-xs: 8px;
    --option-radius: 9px;
    --option-border-default: #c8d7cd;
    --option-hover-shadow: none;
    --option-selected-shadow: none;
    --option-card-radius: 10px;
    --option-card-shadow: none;
    --focus-ring-color: rgba(22, 121, 76, 0.26);
}

body {
    background: var(--color-bg);
    color: var(--color-text-primary);
}

a {
    color: var(--color-brand-700);
}

a:hover {
    color: #0b4f2f;
}

.header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-border);
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 34px;
}

.logo img {
    filter: none;
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    background: none;
    color: var(--color-text-primary);
    -webkit-background-clip: initial;
    background-clip: initial;
}

@media (min-width: 769px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .header .user-info {
        margin-left: auto;
        gap: 12px;
    }

    .header .nav-points {
        order: 1;
    }

    .header .info-center-container {
        order: 2;
        margin-right: 0;
    }

    .header .auth-buttons {
        order: 3;
    }

    .header .header-buttons {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 28px;
        padding: 0;
        z-index: 2;
        white-space: nowrap;
    }

    .header .header-buttons .btn-card-exchange,
    .header .header-buttons .btn-recharge,
    .header .header-buttons .btn-ai-detection,
    .header .header-buttons .btn-help {
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--color-text-primary) !important;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.2;
        text-decoration: none;
    }

    .header .header-buttons .btn-card-exchange i,
    .header .header-buttons .btn-recharge i,
    .header .header-buttons .btn-ai-detection i,
    .header .header-buttons .btn-help i {
        display: none !important;
    }

    .header .header-buttons .btn-card-exchange:hover,
    .header .header-buttons .btn-recharge:hover,
    .header .header-buttons .btn-ai-detection:hover,
    .header .header-buttons .btn-help:hover {
        color: var(--color-brand-700) !important;
        background: transparent !important;
        border-color: transparent !important;
    }
}

.notification-bar {
    background: #f4f7f5;
    border-bottom: 1px solid var(--color-border);
    border-left: 3px solid var(--color-brand-600);
    box-shadow: none;
}

.notification-bar.notification-bar--maintenance {
    background: #fef2f2;
    border-bottom: 1px solid #fecaca;
    border-left: 3px solid #b91c1c;
    box-shadow: none;
}

.nav-points,
.points-display {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    box-shadow: none;
}

.points-value,
.points-display i,
.nav-points .coins-icon {
    color: var(--color-brand-700);
}

.btn,
.header-buttons .btn,
.auth-buttons .btn,
.btn-invite,
.btn-login-register {
    border-radius: 9px !important;
    border: 1px solid var(--color-border-strong) !important;
    box-shadow: none !important;
    background-image: none !important;
    transform: none !important;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease !important;
}

.btn:hover,
.header-buttons .btn:hover,
.auth-buttons .btn:hover,
.btn-invite:hover,
.btn-login-register:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #f1f5f2 !important;
    border-color: #b6cabc !important;
}

.btn:active,
.header-buttons .btn:active,
.auth-buttons .btn:active {
    transform: none !important;
}

.btn-primary,
.auth-buttons .btn,
.btn-login-register,
.btn-invite {
    background: var(--color-brand-600) !important;
    border-color: #125f3b !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.auth-buttons .btn:hover,
.btn-login-register:hover,
.btn-invite:hover {
    background: #125f3b !important;
    border-color: #0f4e31 !important;
    color: #ffffff !important;
}

.btn-primary i,
.auth-buttons .btn i,
.btn-login-register i,
.btn-invite i {
    color: #ffffff !important;
}

.btn-secondary {
    background: #ffffff !important;
    color: var(--color-text-primary) !important;
    border-color: #c8d7cd !important;
}

.btn-secondary:hover {
    background: #f1f5f2 !important;
    border-color: #afc6b7 !important;
}

.main-content {
    margin-top: 22px;
    margin-bottom: 14px;
}

.main-content,
.features-section,
.options-container,
.processing-stack,
.text-processing-area,
.input-section,
.output-section,
.footer-minimal {
    background-image: none !important;
    box-shadow: none !important;
}

.features-section {
    margin-top: 0;
    margin-bottom: 8px;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.feature-card {
    min-height: 92px;
    border: 0;
    border-right: 1px solid var(--color-border);
    border-radius: 0;
    box-shadow: none;
    background: #fbfdfb;
    padding: 8px 12px;
    gap: 3px;
    position: relative;
}

.features-container .feature-card:last-child {
    border-right: 0;
}

.feature-card:hover {
    background: #f3f8f5;
    border-color: var(--color-border);
    transform: none;
    box-shadow: none;
}

.feature-card.active,
.feature-card.selected {
    background: #ecf7ef;
    box-shadow: none;
    border-color: var(--color-border);
    border-right-color: var(--color-border);
}

.feature-card.active::before,
.feature-card.selected::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-brand-600);
}

.feature-icon {
    color: var(--color-brand-600);
}

.feature-title {
    font-size: 16px;
    color: var(--color-text-primary);
}

.feature-desc {
    display: block;
    color: #4d5f52;
    font-size: 12px;
    line-height: 1.3;
    margin: 1px 0 0;
}

.feature-price {
    padding: 1px 7px;
    border-radius: 6px;
    background: #edf4ef;
    color: var(--color-brand-700);
    font-size: 11px;
    line-height: 1.3;
}

.feature-check {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: #0f5f39;
}

.feature-check i {
    font-size: 15px;
    color: #0f5f39;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.feature-card.active .feature-check,
.feature-card.selected .feature-check {
    border: 0;
    background: transparent;
}

.feature-card.active .feature-check i,
.feature-card.selected .feature-check i {
    opacity: 1;
    transform: scale(1.14);
}

.options-container {
    gap: 8px;
    margin: 8px auto 10px;
}

.option-card,
.options-container .option-card,
.main-content .options-container .option-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: none;
}

.option-card:hover {
    transform: none;
    background: #ffffff;
    border-color: #b5c8ba;
    box-shadow: none;
}

.option-card:focus-within {
    border-color: rgba(22, 121, 76, 0.52);
    box-shadow: 0 0 0 3px rgba(22, 121, 76, 0.12);
}

.card-header {
    margin-bottom: 6px;
}

.card-header i {
    color: var(--color-brand-600);
}

.card-title {
    color: var(--color-text-primary);
}

#platform-card .usage-guide-link {
    color: var(--color-brand-700);
}

.platform-scroll-row {
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
    scrollbar-width: none;
}

.platform-option,
.language-option,
.feature-option,
.processing-mode-option {
    position: relative;
    flex: 0 0 auto;
}

.platform-option label,
.language-option label,
.feature-option label,
.processing-mode-option label {
    border-radius: 8px;
    border: 1px solid #c8d7cd;
    background: #ffffff;
    color: #1f2f22;
    box-shadow: none;
    min-height: 38px;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.platform-option label:hover,
.language-option label:hover,
.feature-option label:hover,
.processing-mode-option label:hover {
    transform: none;
    background: #f1f5f2;
    border-color: #aac3b1;
    box-shadow: none;
}

.platform-option input[type="radio"]:checked + label,
.language-option input[type="radio"]:checked + label,
.feature-option input[type="radio"]:checked + label,
.processing-mode-option input[type="radio"]:checked + label,
.feature-option input[type="radio"]:checked + label.chip-blue,
.feature-option input[type="radio"]:checked + label.chip-purple,
.feature-option input[type="radio"]:checked + label.chip-green {
    background: var(--color-brand-600);
    border-color: #125f3b;
    color: #ffffff;
    box-shadow: none;
}

.mode-switch {
    border-radius: 9px;
    border: 1px solid var(--color-border);
    background: #f1f5f2;
    box-shadow: none;
}

.mode-switch::before {
    border-radius: 7px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(22, 33, 23, 0.08);
}

.mode-switch-btn {
    border-radius: 7px;
    color: #3a4a3e;
}

.mode-switch-btn.is-active {
    color: var(--color-brand-700);
    transform: none;
}

.processing-stack {
    margin: 6px auto 10px !important;
    gap: 8px !important;
}

.text-processing-area {
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: none;
    padding: 8px;
    gap: 8px;
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin-bottom: 10px !important;
}

.input-section,
.output-section {
    background: transparent;
    border: 1px solid rgba(22, 33, 23, 0.08);
    border-radius: 8px;
    padding: 8px;
}

.input-text-shell {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.input-text-shell:focus-within {
    border: 0;
    box-shadow: none;
}

.section-title {
    color: var(--color-text-primary);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom-color: rgba(22, 33, 23, 0.1);
    font-size: 18px;
}

.section-title i {
    color: var(--color-brand-600);
}

#input-text,
.output-container {
    border-radius: 8px;
    border: 1px solid #c8d7cd;
    background: #fcfefc;
    box-shadow: none;
    height: clamp(216px, 33vh, 290px);
    min-height: 216px;
    padding: 12px;
}

#input-text:focus {
    border-color: var(--color-brand-600);
    box-shadow: 0 0 0 3px rgba(22, 121, 76, 0.12);
}

.text-count,
.output-stats {
    color: var(--color-text-secondary);
    margin-top: 6px;
    font-size: 13px;
}

.input-actions,
.output-buttons {
    gap: 8px;
}

.button-group {
    gap: 8px;
}

#start-processing,
#copy-btn {
    min-width: 96px;
    min-height: 44px;
}

.processing-config-icon,
.processing-config-stat-card,
.processing-config-tip.secondary {
    background-image: none !important;
}

.processing-config-warning {
    border-radius: 10px;
}

.footer.footer-minimal {
    margin-top: 22px;
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    box-shadow: none;
}

.footer-minimal .footer-main {
    padding: 18px 24px 10px;
}

.footer-minimal .footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.footer-minimal .footer-brand h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.footer-minimal .footer-desc {
    margin-top: 2px;
    color: var(--color-text-secondary);
    font-size: 13px;
}

.footer-minimal .footer-links {
    display: flex;
    gap: 14px;
}

.footer-minimal .footer-link {
    color: var(--color-text-secondary);
    font-size: 13px;
}

.footer-minimal .footer-link:hover {
    color: var(--color-brand-700);
}

.footer-minimal .footer-bottom {
    border-top: 1px solid #e4ece7;
}

.footer-minimal .footer-bottom-content {
    padding: 10px 24px 16px;
}

.footer-minimal .footer-copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #5a6a5f;
    font-size: 12px;
}

.footer-minimal .icp-link {
    color: #5a6a5f;
}

#hero-section,
#effect-showcase,
.featured-articles,
#home-postflow-root {
    display: none !important;
}

@media (max-width: 1024px) {
    .header {
        padding: 16px 18px;
    }

    .main-content {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-top: 14px;
    }

    .features-container {
        grid-template-columns: 1fr;
        border: 0;
        gap: 8px;
        background: transparent;
    }

    .feature-card {
        border: 1px solid var(--color-border);
        border-radius: 8px;
        min-height: 76px;
    }

    .platform-scroll-row {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .text-processing-area {
        grid-template-columns: 1fr;
        padding: 6px;
    }

    .footer-minimal .footer-content,
    .footer-minimal .footer-copyright {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    .btn,
    .feature-card,
    .option-card {
        animation: none !important;
        transition: none !important;
    }
}
