/* 首页主功能区主路径样式（阶段 1 收口） */

body.homepage-body {
    background:
        radial-gradient(circle at 8% 52%, rgba(96, 87, 219, 0.038) 0%, rgba(96, 87, 219, 0.012) 13%, rgba(96, 87, 219, 0) 34%),
        radial-gradient(circle at 92% 58%, rgba(96, 87, 219, 0.034) 0%, rgba(96, 87, 219, 0.011) 14%, rgba(96, 87, 219, 0) 36%),
        radial-gradient(circle at 52% 94%, rgba(109, 98, 226, 0.03) 0%, rgba(109, 98, 226, 0.01) 13%, rgba(109, 98, 226, 0) 30%),
        linear-gradient(180deg, #fffefd 0%, #fdfcf9 44%, #f8f7f3 100%);
    background-size: 108% 108%, 110% 110%, 106% 106%, 100% 100%;
    background-position: 0% 0%, 100% 0%, 50% 100%, 0 0;
    background-repeat: no-repeat;
    background-color: #fffefe;
}

@keyframes homepagePaperBreath {
    0% {
        transform: translateX(-50%) translate3d(0, 0, 0) scale(1);
        opacity: 0.64;
        background-position: 0% 0%, 100% 0%, 50% 100%;
    }

    50% {
        transform: translateX(-50%) translate3d(0, -8px, 0) scale(1.015);
        opacity: 0.74;
        background-position: 2% 3%, 98% -1%, 50% 97%;
    }

    100% {
        transform: translateX(-50%) translate3d(0, 10px, 0) scale(1.03);
        opacity: 0.68;
        background-position: -2% -2%, 102% 4%, 52% 102%;
    }
}

.main-content {
    --main-flow-surface: linear-gradient(180deg, rgba(255, 255, 253, 0.994) 0%, rgba(251, 249, 246, 1) 100%);
    --main-flow-surface-soft: linear-gradient(180deg, rgba(255, 255, 254, 0.994) 0%, rgba(252, 250, 247, 1) 100%);
    --main-flow-surface-active: linear-gradient(180deg, rgba(255, 255, 253, 0.997) 0%, rgba(251, 249, 246, 0.997) 100%);
    --main-flow-border: rgba(96, 81, 61, 0.12);
    --main-flow-border-strong: rgba(87, 81, 213, 0.22);
    --main-flow-shadow: 0 18px 30px rgba(31, 26, 19, 0.055);
    --main-flow-shadow-strong: 0 24px 38px rgba(31, 26, 19, 0.085);
    --main-flow-accent-line: linear-gradient(90deg, rgba(87, 81, 213, 0) 0%, rgba(87, 81, 213, 0.18) 28%, rgba(184, 138, 47, 0.14) 54%, rgba(87, 81, 213, 0) 100%);
    --main-flow-card-shadow: 0 16px 28px rgba(31, 26, 19, 0.065), inset 0 1px 0 rgba(255, 255, 255, 0.84);
    --main-flow-card-shadow-strong: 0 24px 40px rgba(31, 26, 19, 0.095), inset 0 1px 0 rgba(255, 255, 255, 0.88);
    --main-flow-chip-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.997) 0%, rgba(253, 251, 248, 0.993) 100%);
    --main-flow-input-panel: linear-gradient(180deg, rgba(255, 255, 252, 0.984) 0%, rgba(251, 249, 246, 0.986) 100%);
    --main-flow-output-panel: linear-gradient(180deg, rgba(255, 255, 252, 0.984) 0%, rgba(251, 249, 246, 0.986) 100%);
    --main-flow-input-pane: linear-gradient(180deg, rgba(255, 255, 254, 1) 0%, rgba(253, 251, 248, 1) 100%);
    --main-flow-output-pane: linear-gradient(180deg, rgba(255, 255, 254, 1) 0%, rgba(253, 251, 248, 1) 100%);
    --main-flow-radius: 20px;
    position: relative;
    z-index: 5;
    isolation: isolate;
    margin-top: 0;
    padding-top: 60px;
}

.main-content::before,
.main-content::after {
    content: '';
    position: absolute;
    left: 50%;
    pointer-events: none;
}

.main-content::before {
    top: -44px;
    bottom: -88px;
    width: min(1720px, calc(100vw - 12px));
    transform: translateX(-50%);
    border-radius: clamp(28px, 4vw, 52px);
    background: linear-gradient(180deg, rgba(255, 255, 252, 0.92) 0%, rgba(252, 250, 246, 0.95) 48%, rgba(248, 246, 241, 0.97) 100%);
    opacity: 0.9;
    z-index: -2;
}

.main-content::after {
    top: 72px;
    bottom: -112px;
    width: min(1760px, 100vw);
    transform: translateX(-50%);
    border-radius: clamp(36px, 5vw, 64px);
    background:
        radial-gradient(circle at 8% 44%, rgba(87, 81, 213, 0.042) 0%, rgba(87, 81, 213, 0.013) 12%, rgba(87, 81, 213, 0) 30%),
        radial-gradient(circle at 92% 46%, rgba(87, 81, 213, 0.04) 0%, rgba(87, 81, 213, 0.012) 13%, rgba(87, 81, 213, 0) 32%),
        radial-gradient(circle at 50% 100%, rgba(109, 98, 226, 0.036) 0%, rgba(109, 98, 226, 0.012) 12%, rgba(109, 98, 226, 0) 28%);
    background-repeat: no-repeat;
    opacity: 0.72;
    filter: blur(2px);
    z-index: -1;
    will-change: transform, opacity, background-position;
    animation: homepagePaperBreath 24s var(--motion-ease) infinite alternate;
}

.platform-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.mobile-platform-option {
    display: none;
}

.platform-mobile-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 16px;
    border: 1.5px solid rgba(96, 81, 61, 0.14);
    background: var(--main-flow-chip-surface);
    color: #2f3645;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    box-shadow: 0 12px 20px rgba(28, 24, 18, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    transition: background var(--motion-base) var(--motion-ease),
        border-color var(--motion-base) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease),
        color var(--motion-base) var(--motion-ease),
        transform var(--motion-base) var(--motion-ease);
}

.platform-mobile-trigger:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(252, 249, 244, 1) 100%);
    border-color: rgba(87, 81, 213, 0.22);
    box-shadow: 0 14px 22px rgba(28, 24, 18, 0.1);
    transform: translateY(-1px);
}

.platform-mobile-trigger:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
}

.platform-mobile-trigger i {
    font-size: 0.85rem;
    transition: transform var(--motion-base) var(--motion-ease);
}

.platform-mobile-trigger[aria-expanded="true"] i {
    transform: rotate(-180deg);
}

.platform-mobile-trigger.selected {
    border-color: #4f47cb;
    background: var(--color-brand-600);
    color: #ffffff;
    box-shadow: 0 12px 20px rgba(31, 26, 19, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.platform-mobile-trigger.selected .option-badge {
    background: rgba(255, 255, 255, 0.32);
}

body.platform-menu-open {
    overflow: hidden;
}

.platform-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    min-width: 0;
    z-index: 2000;
}

.platform-modal-overlay {
    display: none;
}

.platform-dropdown.open {
    z-index: 2100;
}

.platform-dropdown .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 12px;
    border: 1px solid rgba(96, 81, 61, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(250, 248, 243, 0.99) 100%);
    color: #1f2937;
    font-size: clamp(0.66rem, 3vw, 0.82rem);
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(31, 26, 19, 0.08);
    transition: color var(--motion-base) var(--motion-ease),
        background var(--motion-base) var(--motion-ease),
        border-color var(--motion-base) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease),
        transform var(--motion-base) var(--motion-ease);
}

.platform-dropdown .dropdown-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(87, 81, 213, 0.2);
    box-shadow: 0 16px 30px rgba(31, 26, 19, 0.1);
}

.platform-dropdown .dropdown-toggle i {
    font-size: 0.85rem;
    transition: transform var(--motion-base) var(--motion-ease);
}

.platform-dropdown.open .dropdown-toggle i {
    transform: rotate(-180deg);
}

.platform-dropdown .dropdown-toggle.selected {
    border-color: #4f47cb;
    background: var(--color-brand-600);
    color: #ffffff;
}

.platform-dropdown.open .dropdown-toggle {
    border-color: #4f47cb;
    box-shadow: 0 18px 36px rgba(87, 81, 213, 0.18);
}

.platform-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
    padding: 12px;
    border: 1px solid rgba(96, 81, 61, 0.14);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.99) 0%, rgba(249, 245, 238, 0.99) 100%);
    box-shadow: 0 20px 40px rgba(31, 26, 19, 0.12);
    z-index: 2200;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity var(--motion-base) var(--motion-ease),
        transform var(--motion-base) var(--motion-ease);
}

.platform-dropdown.open .platform-dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#platform-card .usage-guide-link {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(73, 80, 107, 0.68);
    font-size: 11.5px;
    margin-left: 0;
    font-weight: 550;
    line-height: 1.4;
    vertical-align: middle;
    box-shadow: none;
    cursor: pointer;
    transition: color var(--motion-base) var(--motion-ease),
        opacity var(--motion-base) var(--motion-ease);
}

#platform-card .usage-guide-link i,
#platform-card .usage-guide-link .ui-icon {
    font-size: 11px;
    color: rgba(87, 81, 213, 0.58);
}

#platform-card .usage-guide-link span {
    position: relative;
}

#platform-card .usage-guide-link span::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: currentColor;
    opacity: 0.24;
}

#platform-card .usage-guide-link:hover {
    color: #3d4155;
    opacity: 1;
}

#platform-card .usage-guide-link:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.22);
    outline-offset: 2px;
    border-radius: 6px;
}

#platform-card .usage-guide-link::after {
    content: none;
}

.option-card.platform-card-elevated {
    position: relative;
    z-index: 2400;
}

.platform-dropdown-menu .platform-option {
    width: 100%;
}

.platform-dropdown-menu .platform-option label,
.platform-dropdown-menu .platform-option .platform-variant-trigger {
    width: 100%;
    justify-content: center;
}

.platform-dropdown-menu .platform-option label .option-content,
.platform-dropdown-menu .platform-option .platform-variant-trigger .option-content {
    width: 100%;
    justify-content: center;
}

#platform-card .platform-option > button.platform-variant-trigger {
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 8px 14px !important;
    border: 1px solid rgba(22, 22, 21, 0.12) !important;
    border-radius: 11px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(250, 248, 243, 1) 100%) !important;
    color: #252d3c !important;
    font: inherit !important;
    font-size: 12.75px !important;
    font-weight: 670 !important;
    line-height: 1.08 !important;
    letter-spacing: 0.01em !important;
    text-align: center !important;
    box-shadow: 0 10px 18px rgba(31, 26, 19, 0.08) !important;
    cursor: pointer !important;
}

#platform-card .platform-option > button.platform-variant-trigger .option-content {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
}

#platform-card .platform-option.platform-option--zhuque > button.platform-variant-trigger {
    align-items: center !important;
    text-align: center !important;
}

#platform-card .platform-option.platform-option--zhuque > button.platform-variant-trigger .option-content {
    justify-content: center !important;
}

#platform-card .platform-option > input[type="radio"]:checked + button.platform-variant-trigger,
#platform-card .platform-option > button.platform-variant-trigger.is-selected {
    background: var(--color-brand-600) !important;
    border-color: #4f47cb !important;
    color: var(--option-text-selected) !important;
    box-shadow: 0 12px 20px rgba(31, 26, 19, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

#platform-card .platform-option > input[type="radio"]:checked + button.platform-variant-trigger .option-text,
#platform-card .platform-option > button.platform-variant-trigger.is-selected .option-text {
    color: inherit !important;
}

.features-section .features-container {
    gap: clamp(8px, 0.8vw, 12px);
    margin: 4px auto 8px;
}

.homepage-workbench-hidden,
[data-homepage-workbench-hidden] {
    display: none !important;
}

.features-section .feature-card {
    border-radius: calc(var(--main-flow-radius) - 2px);
    border-color: var(--main-flow-border);
    background: var(--main-flow-surface-soft);
    box-shadow: var(--main-flow-card-shadow);
    min-height: 102px;
    padding: 13px 16px;
    row-gap: 8px;
    column-gap: 12px;
}

.features-section .feature-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: var(--main-flow-accent-line);
    opacity: 0.82;
    pointer-events: none;
}

.features-section .feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--main-flow-border-strong);
    background: var(--main-flow-surface-soft);
    box-shadow: var(--main-flow-card-shadow-strong);
}

.features-section .feature-card.selected,
.features-section .feature-card.active {
    border-color: rgba(87, 81, 213, 0.52);
    background: var(--main-flow-surface-active);
    box-shadow: 0 16px 28px rgba(31, 26, 19, 0.075), inset 0 0 0 1px rgba(87, 81, 213, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.features-section .feature-header {
    align-items: flex-start;
    gap: 8px;
}

.features-section .feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(245, 241, 255, 0.96) 0%, rgba(237, 233, 251, 0.96) 100%);
    color: var(--color-brand-700);
    box-shadow: 0 8px 16px rgba(87, 81, 213, 0.1);
}

.features-section .feature-card.active .feature-icon,
.features-section .feature-card.selected .feature-icon {
    background: linear-gradient(180deg, rgba(246, 242, 255, 0.98) 0%, rgba(240, 235, 251, 0.98) 100%);
    color: var(--color-brand-700);
    box-shadow: 0 8px 16px rgba(31, 26, 19, 0.06);
}

.features-section .feature-title {
    color: #1c1d24;
    font-size: 16.75px;
    font-weight: 680;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.features-section .feature-desc {
    font-size: 12.35px;
    line-height: 1.44;
    color: rgba(22, 22, 21, 0.74);
}

.features-section .feature-meta {
    gap: 10px;
}

.features-section .feature-check {
    border-color: rgba(87, 81, 213, 0.14);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 14px rgba(31, 26, 19, 0.06);
    transition: background 160ms var(--motion-ease), border-color 160ms var(--motion-ease), box-shadow 160ms var(--motion-ease), transform 160ms var(--motion-ease);
}

.features-section .feature-check i {
    color: #ffffff;
    transform: scale(0.72);
    transition: opacity 160ms var(--motion-ease), transform 160ms var(--motion-ease);
}

.features-section .feature-card.active .feature-check,
.features-section .feature-card.selected .feature-check {
    background: linear-gradient(180deg, rgba(107, 93, 198, 0.98) 0%, rgba(87, 81, 213, 0.98) 100%);
    border-color: rgba(87, 81, 213, 0.96);
    box-shadow: 0 10px 18px rgba(87, 81, 213, 0.24), 0 0 0 3px rgba(87, 81, 213, 0.12);
    transform: scale(1.02);
}

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

.features-section .feature-price {
    background: linear-gradient(180deg, rgba(249, 246, 255, 0.98) 0%, rgba(243, 238, 252, 0.98) 100%);
    color: #3f3aa3;
    border: 1px solid rgba(87, 81, 213, 0.14);
    padding: 4px 10px;
    box-shadow: 0 8px 14px rgba(87, 81, 213, 0.08);
}

.features-section .feature-card.active .feature-price,
.features-section .feature-card.selected .feature-price {
    background: linear-gradient(180deg, rgba(249, 246, 255, 0.9) 0%, rgba(244, 239, 252, 0.9) 100%);
    border-color: rgba(87, 81, 213, 0.24);
}

.options-container {
    gap: 6px;
    margin-bottom: 12px;
}

#platform-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--main-flow-radius);
    border-color: var(--main-flow-border);
    background: var(--main-flow-surface);
    box-shadow: var(--main-flow-shadow);
}

#platform-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: var(--main-flow-accent-line);
    pointer-events: none;
}

.platform-card-highlight {
    box-shadow: 0 0 0 1px rgba(87, 81, 213, 0.16), 0 0 0 6px rgba(87, 81, 213, 0.05), 0 18px 30px rgba(87, 81, 213, 0.08);
    border-radius: 16px;
    transform: translateY(-1px);
    transition: box-shadow 0.24s ease, transform 0.24s ease;
}

#platform-card .card-header {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

#platform-card .card-header i {
    color: var(--color-brand-700);
    font-size: 15px;
    margin-top: 2px;
}

#platform-card .card-title-group {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

#platform-card .card-title {
    font-size: 14.5px;
    font-weight: 650;
    color: #1b1d24;
    letter-spacing: 0.01em;
}

#platform-card .platform-scroll-row {
    gap: 8px;
    padding: 4px;
    align-items: stretch;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(250, 247, 242, 0.72) 0%, rgba(255, 253, 249, 0.58) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

#platform-card .platform-option {
    display: flex;
    min-width: 0;
}

#platform-card .platform-option label,
#platform-card .platform-option .platform-variant-trigger {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 11px;
    border-color: rgba(22, 22, 21, 0.12);
    background: var(--main-flow-chip-surface);
    box-shadow: 0 12px 20px rgba(31, 26, 19, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    color: #252d3c;
    font-size: 12.75px;
    font-weight: 670;
    line-height: 1.08;
    letter-spacing: 0.01em;
    transition: transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease,
        color 0.22s ease;
}

#platform-card .platform-option .option-content {
    width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

#platform-card .platform-option .option-text {
    display: block;
    width: 100%;
    text-align: center;
}

#platform-card .platform-option label:hover,
#platform-card .platform-option .platform-variant-trigger:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(252, 249, 244, 1) 100%);
    border-color: var(--main-flow-border-strong);
    box-shadow: 0 16px 24px rgba(31, 26, 19, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#platform-card .platform-option input[type="radio"]:checked + label,
#platform-card .platform-option input[type="radio"]:checked + .platform-variant-trigger,
#platform-card .platform-option > input[type="radio"]:checked + button.platform-variant-trigger,
#platform-card .platform-option > button.platform-variant-trigger.is-selected {
    background: var(--color-brand-600) !important;
    border-color: #4f47cb !important;
    color: var(--option-text-selected) !important;
    box-shadow: 0 12px 20px rgba(31, 26, 19, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

#platform-card .platform-option input[type="radio"]:checked + label .option-text,
#platform-card .platform-option input[type="radio"]:checked + .platform-variant-trigger .option-text {
    color: inherit;
}

#platform-card .platform-option--unavailable .platform-unavailable-trigger {
    border-style: dashed;
    border-color: rgba(217, 119, 6, 0.28);
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.96) 0%, rgba(254, 243, 199, 0.9) 100%);
    color: #92400e;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

#platform-card .platform-option--unavailable .platform-unavailable-trigger:hover {
    border-color: rgba(217, 119, 6, 0.42);
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.99) 0%, rgba(254, 243, 199, 0.96) 100%);
    box-shadow: 0 8px 16px rgba(146, 64, 14, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

#platform-card .platform-option--notice .platform-notice-trigger {
    border-style: dashed;
    border-color: rgba(217, 119, 6, 0.28);
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.96) 0%, rgba(254, 243, 199, 0.9) 100%);
    color: #92400e;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

#platform-card .platform-option--notice .platform-notice-trigger:hover {
    border-color: rgba(217, 119, 6, 0.42);
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.99) 0%, rgba(254, 243, 199, 0.96) 100%);
    box-shadow: 0 8px 16px rgba(146, 64, 14, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

#platform-card .platform-option--notice input[type="radio"]:checked + .platform-notice-trigger {
    background: #d97706 !important;
    border-color: #b45309 !important;
    color: #fff !important;
    box-shadow: 0 12px 20px rgba(146, 64, 14, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.text-processing-area {
    position: relative;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(18px, 2vw, 26px);
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.text-processing-area::before {
    content: none;
}

.text-processing-area::after {
    content: none;
}

.section-title {
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 34px;
    padding-bottom: 8px;
    border-bottom-color: var(--main-flow-border);
}

.section-title-main span {
    font-size: 17px;
    font-weight: 650;
    letter-spacing: 0.01em;
    color: #1b1d24;
}

.section-title i,
.section-title .ui-icon {
    color: var(--color-brand-700);
    font-size: 1rem;
}

.section-title-side {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    max-width: min(58%, 360px);
    min-width: 0;
}

.panel-column {
    padding: 12px 12px 10px;
    border-radius: 16px;
    border: 1px solid rgba(96, 81, 61, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.panel-column--input {
    background: var(--main-flow-input-panel);
}

.panel-column--output {
    background: var(--main-flow-output-panel);
    border-color: rgba(96, 81, 61, 0.1);
}

.text-processing-area .mode-switch {
    padding: 2px;
    border-radius: 9px;
    border: 1px solid rgba(96, 81, 61, 0.12);
    background: rgba(249, 247, 242, 0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
    min-height: 34px;
}

.text-processing-area .mode-switch::before {
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(253, 251, 247, 1) 100%);
    box-shadow: 0 4px 8px rgba(31, 26, 19, 0.06);
}

.text-processing-area .mode-switch-btn {
    min-height: 30px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 620;
    letter-spacing: 0;
}

.input-text-shell,
.output-container {
    border-radius: 10px;
    border-color: rgba(96, 81, 61, 0.12);
    box-shadow: 0 14px 24px rgba(31, 26, 19, 0.085), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.input-text-shell {
    background: var(--main-flow-input-pane);
}

.output-container {
    border-color: rgba(96, 81, 61, 0.12);
    background: var(--main-flow-output-pane);
}

.input-text-shell:focus-within {
    border-color: rgba(87, 81, 213, 0.22);
    box-shadow: 0 0 0 3px rgba(87, 81, 213, 0.07), 0 10px 18px rgba(31, 26, 19, 0.08);
}

#input-text {
    color: rgba(22, 22, 21, 0.82);
}

.text-count,
.output-stats {
    color: #667085;
}

.character-count i,
#estimated-points i,
.output-character-count i,
#consumed-points i {
    color: var(--color-brand-600);
}

.input-actions,
.output-buttons {
    gap: 12px;
    align-items: stretch;
}

.input-actions .button-group,
.output-buttons .button-group {
    gap: 10px;
    align-items: stretch;
}

.input-actions #clear-btn,
.input-actions #import-docx-btn,
#download-word-btn,
#open-history-btn,
#text-processing-section #copy-btn {
    border-radius: 10px;
    border: 1px solid rgba(22, 22, 21, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(253, 251, 247, 1) 100%);
    color: #1f2431;
    box-shadow: 0 14px 24px rgba(31, 26, 19, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.84);
    transition: transform var(--motion-base) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease),
        border-color var(--motion-base) var(--motion-ease),
        background var(--motion-base) var(--motion-ease),
        color var(--motion-base) var(--motion-ease);
}

.input-actions #clear-btn:hover,
.input-actions #import-docx-btn:hover,
#download-word-btn:hover,
#open-history-btn:hover,
#text-processing-section #copy-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(22, 22, 21, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(252, 250, 246, 1) 100%);
    color: #151a28;
    box-shadow: 0 18px 30px rgba(31, 26, 19, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.input-actions .btn,
.output-buttons .btn {
    min-height: 44px;
    font-weight: 650;
}

.input-actions #clear-btn i,
.input-actions #clear-btn .ui-icon,
.input-actions #import-docx-btn i,
.input-actions #import-docx-btn .ui-icon,
#download-word-btn i,
#download-word-btn .ui-icon,
#open-history-btn i,
#open-history-btn .ui-icon,
#text-processing-section #copy-btn i,
#text-processing-section #copy-btn .ui-icon {
    color: #2f3442;
}

#text-processing-section .input-actions #start-processing {
    position: relative;
    border-radius: 11px;
    border: 1px solid #5048ce;
    background: var(--color-brand-600);
    color: #ffffff;
    box-shadow: 0 16px 26px rgba(87, 81, 213, 0.18);
    font-weight: 700;
    transition: transform var(--motion-base) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease),
        background var(--motion-base) var(--motion-ease);
}

#text-processing-section .input-actions #start-processing::before {
    content: none;
}

#text-processing-section .input-actions #start-processing:hover::before,
#text-processing-section .input-actions #start-processing:focus-visible::before {
    content: none;
}

#text-processing-section .input-actions #start-processing:hover {
    transform: translateY(-1px);
    background: #544cd3;
    box-shadow: 0 20px 30px rgba(87, 81, 213, 0.22);
}

#text-processing-section .input-actions #start-processing:active {
    transform: translateY(-1px);
    background: #4a42c6;
    box-shadow: 0 12px 20px rgba(87, 81, 213, 0.16);
}

#text-processing-section .input-actions #start-processing:disabled {
    background: #b5bcc7;
    border-color: #b5bcc7;
    box-shadow: none;
    transform: none;
}

#text-processing-section .input-actions #start-processing:disabled::before {
    display: none;
}

.output-section .privacy-note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border-left: none;
    border: 1px solid rgba(96, 81, 61, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 254, 0.98) 0%, rgba(253, 251, 247, 0.98) 100%);
    color: #5d6070;
    box-shadow: none;
    font-size: 11.5px;
    line-height: 1;
}

.output-section .privacy-note i {
    margin-right: 0;
    color: var(--color-brand-700);
}

.output-container .output-placeholder__badge {
    border-color: rgba(96, 81, 61, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(253, 251, 247, 0.94) 100%);
    color: #5d5780;
}

.output-container .output-placeholder__list li::before {
    background: rgba(87, 81, 213, 0.08);
    border-color: rgba(87, 81, 213, 0.16);
}

.output-section .privacy-note span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.privacy-note--browser-info {
    color: #1f4a9b;
    background: rgba(239, 246, 255, 0.96);
    border-color: rgba(96, 165, 250, 0.26);
}

.privacy-note--browser-info i {
    color: #2563eb;
}

.privacy-note--browser-warning {
    color: #8b5a12;
    background: rgba(255, 247, 224, 0.96);
    border-color: rgba(245, 158, 11, 0.24);
}

.privacy-note--browser-warning i {
    color: #d97706;
}

.input-actions #clear-btn:focus-visible,
.input-actions #import-docx-btn:focus-visible,
#text-processing-section .input-actions #start-processing:focus-visible,
#text-processing-section #copy-btn:focus-visible,
#download-word-btn:focus-visible,
#open-history-btn:focus-visible {
    outline: 3px solid rgba(87, 81, 213, 0.24);
    outline-offset: 2px;
}

@media (min-width: 1024px) and (max-height: 1020px) {
    .main-content {
        padding-top: 46px;
    }

    .features-section .features-container {
        gap: 10px;
        margin: 10px auto 12px;
    }

    .features-section .feature-card {
        min-height: 94px;
        row-gap: 2px;
    }

    .features-section .feature-title {
        font-size: 16px;
    }

    .features-section .feature-desc {
        font-size: 12px;
        line-height: 1.35;
    }

    .features-section .feature-price {
        font-size: 10.5px;
        padding: 2px 7px;
    }

    .text-processing-area {
        --text-pane-height: clamp(224px, 29vh, 292px);
        --text-panel-header-height: 46px;
        --text-panel-meta-height: 30px;
        --text-panel-actions-height: 46px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        padding-top: 50px;
    }
}

@media (max-width: 768px) {
    .main-content::before {
        top: -22px;
        bottom: -56px;
        width: calc(100vw - 8px);
        border-radius: 28px;
    }

    .main-content::after {
        top: 44px;
        bottom: -72px;
        width: 100vw;
        opacity: 0.58;
        filter: blur(1.5px);
    }

    .main-content {
        padding-top: 40px;
        display: flex;
        flex-direction: column;
    }

    /* 统一移动端主路径顺序：先功能，再平台，再输入处理，补充说明后置 */
    .main-content > .features-section {
        order: 1;
    }

    .main-content > .options-container {
        order: 2;
    }

    .main-content > #processing-stack,
    .main-content > .processing-stack {
        order: 3;
    }

    .main-content > #home-postflow-root {
        order: 5;
    }

    .main-content > #home-pricing-section,
    .main-content > .home-pricing-section {
        order: 6;
    }

    .main-content > .postflow-section {
        order: 5;
    }

    .option-card,
    .feature-card {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .product-demo-section {
        order: 7;
    }

    /* 处理配置移动端布局：模式与平台堆叠；处理模式隐藏（移动端仅文本模式） */
    .options-container {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .options-row--main {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        align-items: stretch;
    }

    .text-processing-area {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
        --text-pane-height: clamp(152px, 22vh, 176px);
        --text-pane-padding: 12px;
        --text-pane-font-size: 13px;
        --text-pane-line-height: 1.5;
        --input-placeholder-font-size: 12px;
        --input-placeholder-line-height: 1.66;
        --text-panel-row-gap: 4px;
        --text-panel-header-height: 38px;
        --text-panel-meta-height: 28px;
        --text-panel-actions-height: 40px;
        gap: 10px;
        padding: 0;
        margin-bottom: 16px;
    }

    .text-processing-area::after {
        display: none;
    }

    .text-processing-area .input-section,
    .text-processing-area .output-section {
        min-width: 0;
        max-width: 100%;
        margin: 0;
    }

    /* 迁移自 index.html：移动端标题排布 */
    .text-processing-area .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin: 0 0 2px;
        padding-bottom: 4px;
    }

    .text-processing-area .section-title-main,
    .text-processing-area .section-title-side {
        gap: 6px;
    }

    .text-processing-area .section-title-main span {
        font-size: 15px;
        line-height: 1.2;
    }

    .text-processing-area .section-title i,
    .text-processing-area .section-title .ui-icon {
        font-size: 14px;
    }

    .input-section .section-title {
        gap: 0;
        margin: 0;
        padding-bottom: 4px;
    }

    .input-section .section-title-main {
        min-height: 0;
    }

    .input-section .section-title-side {
        display: none;
        min-height: 0;
    }

    /* 迁移自 index.html：输出区标题保持单行提示 */
    .output-section .section-title {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .output-section .section-title-main {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-start;
        text-align: left;
    }

    .output-section .privacy-note {
        display: inline-flex !important;
        align-items: center;
        justify-content: flex-end;
        margin-left: auto;
        margin-top: 0;
        min-width: 0;
        max-width: calc(100% - 96px);
        padding: 2px 6px;
        gap: 4px;
        font-size: clamp(7px, 1.95vw, 8px);
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
    }

    .output-section .privacy-note i {
        margin-right: 0;
        font-size: 0.8em;
        flex-shrink: 0;
    }

    #processing-type-selection {
        display: none !important;
    }

    .options-container .option-card {
        padding: clamp(6px, 2.2vw, 10px);
        border-radius: 10px;
        overflow: visible;
        min-width: 0;
    }

    .options-container .card-header {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 6px;
    }

    .options-container .card-header i {
        font-size: 12px;
    }

    /* Shorten titles visually on mobile */
    .options-container .card-header .card-title {
        font-size: 0;
        position: relative;
    }

    #platform-card > .card-caption-mobile.card-caption-mobile--visible {
        display: none !important;
    }

    #platform-card .card-header .card-title {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        min-width: 0;
        font-size: 13px;
        line-height: 1.2;
        white-space: nowrap;
    }

    #platform-card .card-header .card-title::before {
        content: none;
    }

    #platform-card .card-header {
        align-items: center;
        margin-bottom: 8px;
    }

    #platform-card .usage-guide-link {
        margin-left: 0;
        flex: 0 0 auto;
        gap: 3px;
        font-size: 11.5px;
        line-height: 1.2;
        white-space: nowrap;
        padding: 0;
        box-shadow: none;
    }

    #platform-card .usage-guide-link i,
    #platform-card .usage-guide-link .ui-icon {
        font-size: 10px;
    }

    /* chips 横向滑动：隐藏滚动条但可滑动 */
    .platform-scroll-row::-webkit-scrollbar {
        display: none;
    }

    .platform-dropdown .dropdown-label {
        flex: 1 1 auto;
    }

    /* 操作条移动端网格布局 */
    .input-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
        justify-content: center;
        justify-items: stretch;
        padding: 4px 0 0 !important;
        height: auto;
    }

    .input-actions .button-group {
        display: contents;
    }

    .input-actions .btn {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: 40px;
        font-size: 12px;
        padding: 0 10px;
    }

    #import-docx-btn {
        white-space: nowrap;
    }

    #clear-btn {
        font-size: 12px;
        padding: 0 10px;
        max-width: none;
        justify-self: stretch;
        align-self: stretch;
    }

    .input-actions #import-docx-btn {
        align-self: stretch;
    }

    .input-actions #start-processing {
        font-size: 13px;
        min-width: 0;
        width: 100%;
        grid-column: 1 / -1;
    }

    /* 迁移自 index.html：移动端输出按钮尺寸 */
    #download-word-btn,
    #open-history-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .input-text-shell,
    .output-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        border: 1.5px solid rgba(96, 81, 61, 0.14);
        border-radius: 12px;
        box-shadow: 0 10px 18px rgba(31, 26, 19, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    }

    .input-text-shell {
        background: var(--main-flow-input-pane);
    }

    .output-container {
        border-color: rgba(96, 81, 61, 0.14);
        background: var(--main-flow-output-pane);
    }

    .output-buttons {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding-top: 4px;
    }

    .output-buttons .button-group {
        display: contents;
    }

    .output-buttons .btn {
        width: 100%;
        height: 40px;
        font-size: 12px;
        padding: 0 10px;
        min-width: 0;
        max-width: 100%;
    }

    #copy-btn {
        grid-column: 1 / -1;
        justify-self: stretch;
        min-width: 0;
    }

    #download-word-btn {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    #open-history-btn {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .output-buttons #copy-btn,
    .output-buttons #download-word-btn,
    .output-buttons #open-history-btn {
        min-width: 0;
    }

    .text-count,
    .output-stats {
        flex-wrap: wrap;
        gap: 4px 8px;
        font-size: 12px;
    }

    .character-count,
    #estimated-points,
    .output-character-count,
    #consumed-points {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .features-section .features-container {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 0;
        overflow: visible;
        scroll-snap-type: none;
        scroll-padding-left: 0;
        scroll-padding-right: 0;
        margin: 0 auto 10px;
    }

    .features-section .feature-card {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 54px;
        padding: 10px 8px;
        border-radius: 14px;
        row-gap: 0;
        column-gap: 0;
        scroll-snap-align: none;
        scroll-snap-stop: normal;
        text-align: center;
        box-shadow: 0 8px 16px rgba(18, 10, 51, 0.09);
    }

    .features-section .feature-header {
        justify-content: center;
        gap: 6px;
    }

    .features-section .feature-icon {
        font-size: 15px;
        flex: 0 0 auto;
    }

    .features-section .feature-title {
        font-size: 0;
        line-height: 1;
    }

    .features-section .feature-title::after {
        content: attr(data-mobile-label);
        display: block;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.1;
        color: currentColor;
        white-space: nowrap;
    }

    .features-section .feature-meta {
        display: none;
    }

    .features-section .feature-desc,
    .features-section .feature-price,
    .features-section .feature-check {
        display: none;
    }

    .features-section .feature-card.active,
    .features-section .feature-card.selected {
        box-shadow: 0 10px 18px rgba(31, 26, 19, 0.08), inset 0 0 0 1px rgba(87, 81, 213, 0.14);
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-top: 30px;
    }

    .features-section .features-container {
        gap: 6px;
        margin-bottom: 8px;
    }

    .features-section .feature-card {
        min-height: 50px;
        padding: 8px 6px;
        border-radius: 12px;
    }

    .features-section .feature-icon {
        font-size: 14px;
    }

    .features-section .feature-title::after {
        font-size: 12px;
    }

    .options-container {
        gap: 6px !important;
    }

    .options-container .option-card {
        padding: 6px !important;
        border-radius: 8px !important;
        overflow: visible !important;
    }

    .options-container .card-header {
        margin-bottom: 4px !important;
    }

    .options-container .card-header i {
        font-size: 11px !important;
    }

    .options-container .card-header .card-title::after {
        font-size: 10px !important;
    }

    .language-option label,
    .platform-option label,
    .platform-option .platform-variant-trigger,
    .feature-option label {
        padding: 8px 12px !important;
        font-size: 13px !important;
        min-height: 40px !important;
    }

    .option-content {
        gap: 3px !important;
    }

    .text-processing-area {
        --text-pane-height: 148px;
        --text-pane-padding: 10px;
        --text-panel-header-height: 38px;
        --text-panel-meta-height: 26px;
        --text-panel-actions-height: 38px;
        gap: 10px;
        padding: 10px;
    }

    .text-processing-area::after {
        display: none;
    }

    .output-section .privacy-note {
        max-width: calc(100% - 84px);
    }
}

@media (max-width: 430px) {
    .text-processing-area {
        --text-pane-height: 140px;
        --text-pane-padding: 9px;
    }

    .input-actions .btn,
    .output-buttons .btn {
        font-size: 12px;
        padding: 0 9px;
        height: 38px;
    }

    .output-section .privacy-note {
        max-width: calc(100% - 80px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-content::after {
        animation: none;
        transform: translateX(-50%);
        opacity: 0.62;
    }
}

@media (max-width: 380px) {
    .features-section .feature-header {
        gap: 4px;
    }

    .features-section .feature-icon {
        font-size: 13px;
    }

    .features-section .feature-title::after {
        font-size: 11px;
    }

    .text-processing-area {
        --text-pane-height: 132px;
        --text-pane-padding: 8px;
        --text-panel-header-height: 36px;
        --text-panel-meta-height: 24px;
        --text-panel-actions-height: 36px;
        padding: 9px;
    }
}
