
        /* ===== 全局重置 & 基础 ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
            background: #0b0f1a;
            color: #e8edf5;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            padding: 24px 16px 60px;
            background-image: radial-gradient(ellipse at 20% 50%, #141c2b 0%, #0b0f1a 70%);
        }

        .app-wrapper {
            max-width: 1280px;
            width: 100%;
        }

        .header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px 20px;
            padding: 20px 28px;
            margin-bottom: 32px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 20px;
            border: 1px solid rgba(255, 215, 100, 0.08);
            backdrop-filter: blur(6px);
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .logo-icon {
            width: 44px;
            height: 44px;
            flex: 0 0 auto;
            border-radius: 12px;
            object-fit: cover;
        }

        .header-title h1 {
            font-size: 22px;
            font-weight: 700;
            letter-spacing: 0.5px;
            background: linear-gradient(135deg, #f5d77b, #e8b84c);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .header-title p {
            font-size: 13px;
            color: #8895b0;
            margin-top: 2px;
            letter-spacing: 0.3px;
        }

        .header-badge {
            background: rgba(232, 184, 76, 0.12);
            border: 1px solid rgba(232, 184, 76, 0.2);
            padding: 6px 18px;
            border-radius: 40px;
            font-size: 13px;
            color: #e8b84c;
            font-weight: 500;
            white-space: nowrap;
        }

        .survey-card {
            background: rgba(255, 255, 255, 0.04);
            border-radius: 24px;
            padding: 28px 32px 34px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(4px);
            margin-bottom: 36px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
            transition: border-color 0.3s;
        }

        .survey-card:hover {
            border-color: rgba(232, 184, 76, 0.15);
        }

        .survey-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 22px 30px;
            margin: 6px 0 18px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .form-group label {
            font-size: 14px;
            font-weight: 500;
            color: #bcc8e0;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .form-group label .label-icon {
            font-size: 16px;
        }

        .form-group .hint {
            font-size: 12px;
            color: #6d7b98;
            font-weight: 400;
            margin-left: 4px;
        }

        .form-control {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 12px 16px;
            font-size: 15px;
            color: #e8edf5;
            transition: all 0.25s;
            outline: none;
            width: 100%;
            font-family: inherit;
        }

        .form-control:focus {
            border-color: #e8b84c;
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 0 3px rgba(232, 184, 76, 0.15);
        }

        .form-control::placeholder {
            color: #5a6a85;
        }

        textarea.form-control {
            min-height: 92px;
            resize: vertical;
            line-height: 1.6;
        }

        .form-group.full-width {
            grid-column: 1 / -1;
        }

        input[type="number"].form-control {
            -moz-appearance: textfield;
        }
        input[type="number"].form-control::-webkit-outer-spin-button,
        input[type="number"].form-control::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .radio-group {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 2px;
        }

        .radio-group .radio-option {
            flex: 1;
            min-width: 70px;
        }

        .radio-group input[type="radio"] {
            display: none;
        }

        .radio-group label {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px 12px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.05);
            border: 1.5px solid rgba(255, 255, 255, 0.07);
            cursor: pointer;
            transition: all 0.2s;
            font-size: 14px;
            font-weight: 500;
            color: #b0bed8;
            text-align: center;
            gap: 6px;
            user-select: none;
            width: 100%;
        }

        .radio-group label:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.15);
        }

        .radio-group input[type="radio"]:checked+label {
            background: rgba(232, 184, 76, 0.12);
            border-color: #e8b84c;
            color: #f5d77b;
            box-shadow: 0 0 20px rgba(232, 184, 76, 0.06);
        }

        .radio-group .radio-option .emoji {
            font-size: 16px;
        }

        .duration-options {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .duration-options .dur-item {
            flex: 0 0 auto;
        }

        .duration-options .dur-item input[type="radio"] {
            display: none;
        }

        .duration-options .dur-item label {
            display: inline-block;
            padding: 8px 16px;
            border-radius: 40px;
            background: rgba(255, 255, 255, 0.05);
            border: 1.5px solid rgba(255, 255, 255, 0.07);
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            color: #b0bed8;
            transition: all 0.2s;
            user-select: none;
        }

        .duration-options .dur-item label:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.15);
        }

        .duration-options .dur-item input[type="radio"]:checked+label {
            background: rgba(232, 184, 76, 0.12);
            border-color: #e8b84c;
            color: #f5d77b;
            box-shadow: 0 0 20px rgba(232, 184, 76, 0.06);
        }

        .btn-recommend {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 16px 40px;
            margin-top: 10px;
            font-size: 18px;
            font-weight: 700;
            border: none;
            border-radius: 16px;
            background: linear-gradient(135deg, #e8b84c, #d49a2e);
            color: #0b0f1a;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            letter-spacing: 0.5px;
            box-shadow: 0 8px 30px rgba(232, 184, 76, 0.2);
        }

        .btn-recommend:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 40px rgba(232, 184, 76, 0.35);
            background: linear-gradient(135deg, #f0c85e, #d49a2e);
        }

        .btn-recommend:active {
            transform: translateY(0px);
        }

        .btn-recommend:disabled {
            cursor: wait;
            opacity: 0.72;
            transform: none;
            box-shadow: none;
        }

        .btn-recommend .icon {
            font-size: 22px;
        }

        .status-message {
            min-height: 22px;
            margin-top: 12px;
            text-align: center;
            color: #8fa0bd;
            font-size: 13px;
            line-height: 1.5;
        }

        .status-message.success {
            color: #8ed8ae;
        }

        .status-message.warning {
            color: #f5d77b;
        }

        .status-message.error {
            color: #ff9f9f;
        }

        .result-section {
            margin-top: 12px;
        }

        .result-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 24px;
            padding: 0 4px;
        }

        .result-header h2 {
            font-size: 20px;
            font-weight: 600;
            color: #e8edf5;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .result-header h2 span {
            background: rgba(232, 184, 76, 0.15);
            padding: 2px 14px;
            border-radius: 40px;
            font-size: 14px;
            color: #e8b84c;
            font-weight: 500;
        }

        .btn-reset {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 8px 20px;
            border-radius: 40px;
            color: #b0bed8;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .btn-reset:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.15);
            color: #fff;
        }

        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
            gap: 24px;
        }

        .result-card {
            background: rgba(255, 255, 255, 0.04);
            border-radius: 20px;
            padding: 24px 26px 26px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            transition: all 0.35s ease;
            animation: fadeUp 0.5s ease forwards;
            opacity: 0;
            transform: translateY(16px);
            display: flex;
            flex-direction: column;
        }

        .result-card:hover {
            background: rgba(255, 255, 255, 0.07);
            border-color: rgba(232, 184, 76, 0.2);
            transform: translateY(-4px);
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
        }

        @keyframes fadeUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

        .result-card .card-name {
            font-size: 20px;
            font-weight: 700;
            color: #f0f4fc;
            letter-spacing: 0.3px;
        }

        .result-card .match-score {
            background: rgba(232, 184, 76, 0.15);
            padding: 4px 16px;
            border-radius: 40px;
            font-size: 16px;
            font-weight: 700;
            color: #f5d77b;
            white-space: nowrap;
            border: 1px solid rgba(232, 184, 76, 0.2);
        }

        .result-card .card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin: 4px 0 12px;
        }

        .result-card .tag {
            background: rgba(255, 255, 255, 0.06);
            padding: 3px 14px;
            border-radius: 40px;
            font-size: 13px;
            color: #b0bed8;
            border: 1px solid rgba(255, 255, 255, 0.04);
        }

        .result-card .tag.highlight {
            background: rgba(232, 184, 76, 0.15);
            color: #f5d77b;
            border-color: rgba(232, 184, 76, 0.3);
            font-weight: 600;
        }

        .result-card .card-meta {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px 16px;
            margin: 8px 0 14px;
            padding: 12px 0;
            border-top: 1px solid rgba(255, 255, 255, 0.04);
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        }

        .result-card .meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            color: #bcc8e0;
        }

        .result-card .meta-item .meta-icon {
            font-size: 15px;
        }
        .result-card .meta-item .meta-value {
            color: #e8edf5;
            font-weight: 500;
        }

        .result-card .card-price {
            font-size: 20px;
            font-weight: 700;
            color: #f5d77b;
            margin: 2px 0 6px;
        }

        .result-card .card-price small {
            font-size: 14px;
            font-weight: 400;
            color: #8895b0;
            margin-left: 4px;
        }

        .card-rules {
            margin-top: 12px;
            padding: 14px 16px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            font-size: 13px;
            line-height: 1.7;
            color: #c8d2e6;
            max-height: 180px;
            overflow-y: auto;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .card-rules::-webkit-scrollbar {
            width: 4px;
        }
        .card-rules::-webkit-scrollbar-thumb {
            background: rgba(232, 184, 76, 0.3);
            border-radius: 10px;
        }
        .card-rules::-webkit-scrollbar-track {
            background: transparent;
        }

        .card-link {
            margin-top: 14px;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .btn-demo {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 20px;
            background: rgba(232, 184, 76, 0.12);
            border: 1px solid rgba(232, 184, 76, 0.25);
            border-radius: 40px;
            color: #f5d77b;
            font-weight: 600;
            font-size: 14px;
            text-decoration: none;
            transition: all 0.2s;
            cursor: pointer;
        }

        .btn-demo:hover {
            background: rgba(232, 184, 76, 0.2);
            border-color: #e8b84c;
            transform: scale(1.02);
        }

        .btn-demo .icon {
            font-size: 18px;
        }

        .card-advice {
            margin-top: 14px;
            padding: 14px 18px;
            background: rgba(232, 184, 76, 0.05);
            border-radius: 14px;
            border-left: 3px solid #e8b84c;
            font-size: 14px;
            line-height: 1.6;
            color: #d0daea;
            flex: 1;
        }

        .card-advice .advice-label {
            font-weight: 600;
            color: #e8b84c;
            margin-right: 6px;
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #6d7b98;
        }

        .empty-state .empty-icon {
            font-size: 56px;
            margin-bottom: 16px;
            opacity: 0.5;
        }

        .empty-state h3 {
            font-size: 20px;
            color: #b0bed8;
            margin-bottom: 8px;
        }

        .empty-state p {
            font-size: 15px;
            max-width: 400px;
            margin: 0 auto;
        }

        .footer {
            margin-top: 48px;
            text-align: center;
            font-size: 13px;
            color: #4d5a72;
            border-top: 1px solid rgba(255, 255, 255, 0.04);
            padding-top: 28px;
            letter-spacing: 0.3px;
        }

        .footer span {
            color: #e8b84c;
        }

        @media (max-width: 768px) {
            .header {
                padding: 16px 20px;
            }
            .header-title h1 {
                font-size: 18px;
            }
            .survey-card {
                padding: 20px 18px 24px;
            }
            .survey-grid {
                grid-template-columns: 1fr 1fr;
                gap: 16px;
            }
            .cards-grid {
                grid-template-columns: 1fr;
            }
            .result-card .card-meta {
                grid-template-columns: 1fr 1fr;
            }
            .btn-recommend {
                font-size: 16px;
                padding: 14px 20px;
            }
            .card-rules {
                max-height: 140px;
            }
            .duration-options .dur-item label {
                font-size: 12px;
                padding: 6px 12px;
            }
        }

        @media (max-width: 480px) {
            .survey-grid {
                grid-template-columns: 1fr;
                gap: 14px;
            }
            .header-badge {
                font-size: 12px;
                padding: 4px 14px;
            }
            .result-card {
                padding: 18px 18px 22px;
            }
            .radio-group .radio-option {
                min-width: 60px;
            }
            .radio-group label {
                padding: 8px 10px;
                font-size: 13px;
            }
            .duration-options .dur-item label {
                font-size: 11px;
                padding: 5px 10px;
            }
        }

        /* ===== 对话式荐单界面 ===== */
        .app-wrapper {
            max-width: 980px;
        }

        .chat-shell {
            min-height: 650px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 24px;
            background: rgba(18, 25, 40, 0.88);
            box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
            backdrop-filter: blur(18px);
        }

        .chat-topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 18px 22px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.07);
            background: rgba(255, 255, 255, 0.025);
        }

        .assistant-identity {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .assistant-avatar {
            width: 42px;
            height: 42px;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            border-radius: 14px;
            background: linear-gradient(145deg, #f3ca64, #c78922);
            box-shadow: 0 8px 22px rgba(232, 184, 76, 0.2);
            color: #111827;
            font-size: 20px;
            object-fit: cover;
        }

        .assistant-name {
            color: #f2f5fb;
            font-size: 16px;
            font-weight: 700;
        }

        .assistant-state {
            margin-top: 3px;
            color: #8391aa;
            font-size: 13px;
        }

        .chat-messages {
            flex: 1;
            min-height: 360px;
            max-height: 620px;
            overflow-y: auto;
            padding: 26px 22px 18px;
            scroll-behavior: smooth;
        }

        .chat-row {
            display: flex;
            align-items: flex-end;
            gap: 10px;
            margin-bottom: 20px;
        }

        .chat-row.user {
            justify-content: flex-end;
        }

        .message-avatar {
            width: 32px;
            height: 32px;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            border-radius: 10px;
            background: rgba(232, 184, 76, 0.14);
            color: #f5d77b;
            font-size: 15px;
            object-fit: cover;
        }

        .message-bubble {
            max-width: min(720px, 82%);
            padding: 14px 17px;
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 6px 18px 18px 18px;
            background: rgba(255, 255, 255, 0.055);
            color: #dce4f2;
            font-size: 15px;
            line-height: 1.75;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .chat-row.user .message-bubble {
            border-color: rgba(232, 184, 76, 0.25);
            border-radius: 18px 6px 18px 18px;
            background: linear-gradient(135deg, rgba(232, 184, 76, 0.2), rgba(190, 128, 31, 0.16));
            color: #fff6dc;
        }

        .typing-bubble {
            display: flex;
            align-items: center;
            gap: 5px;
            min-width: 62px;
        }

        .typing-bubble span {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #e8b84c;
            animation: typingPulse 1.1s infinite ease-in-out;
        }

        .typing-bubble span:nth-child(2) { animation-delay: 0.15s; }
        .typing-bubble span:nth-child(3) { animation-delay: 0.3s; }

        @keyframes typingPulse {
            0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
            30% { transform: translateY(-4px); opacity: 1; }
        }

        .chat-results {
            margin: 4px 0 24px 42px;
            padding: 18px;
            border: 1px solid rgba(232, 184, 76, 0.14);
            border-radius: 20px;
            background: rgba(9, 14, 25, 0.48);
        }

        .chat-results[hidden] {
            display: none;
        }

        .chat-results .result-header {
            margin-bottom: 16px;
        }

        .chat-results .cards-grid {
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 16px;
        }

        .chat-results .result-card {
            padding: 20px;
        }

        .chat-composer-wrap {
            padding: 16px 20px 18px;
            border-top: 1px solid rgba(255, 255, 255, 0.07);
            background: rgba(8, 13, 23, 0.66);
        }

        .chat-composer {
            display: flex;
            align-items: flex-end;
            gap: 12px;
            padding: 8px 8px 8px 16px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.055);
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .chat-composer:focus-within {
            border-color: rgba(232, 184, 76, 0.75);
            box-shadow: 0 0 0 3px rgba(232, 184, 76, 0.1);
        }

        .chat-input {
            min-height: 48px;
            max-height: 150px;
            flex: 1;
            resize: none;
            border: 0;
            outline: 0;
            background: transparent;
            color: #edf2fa;
            font: inherit;
            font-size: 15px;
            line-height: 1.55;
            padding: 11px 0 6px;
        }

        .chat-input::placeholder {
            color: #63718c;
        }

        .send-button {
            width: 48px;
            height: 48px;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            border: 0;
            border-radius: 14px;
            background: linear-gradient(135deg, #efc65e, #cc9029);
            color: #111827;
            cursor: pointer;
            font-size: 20px;
            font-weight: 800;
            transition: transform 0.2s, opacity 0.2s;
        }

        .send-button:hover { transform: translateY(-1px); }
        .send-button:disabled { cursor: wait; opacity: 0.45; transform: none; }

        .composer-hint {
            margin-top: 9px;
            color: #66748e;
            text-align: center;
            font-size: 12px;
        }

        @media (max-width: 700px) {
            body { padding: 14px 10px 30px; }
            .header { margin-bottom: 18px; }
            .header-badge { display: none; }
            .chat-shell { min-height: calc(100vh - 120px); border-radius: 18px; }
            .chat-topbar { padding: 14px; }
            .chat-messages { padding: 20px 14px 12px; max-height: none; }
            .message-bubble { max-width: 88%; font-size: 14px; }
            .chat-results { margin-left: 0; padding: 12px; }
            .chat-results .cards-grid { grid-template-columns: 1fr; }
            .chat-composer-wrap { padding: 12px; }
            .composer-hint { display: none; }
        }

        /* ===== 纯白简洁主题 ===== */
        body {
            background: #ffffff;
            background-image: none;
            color: #17191d;
        }

        .header-title h1,
        .result-header h2 {
            color: #17191d;
        }

        .header-title p,
        .assistant-state,
        .composer-hint,
        .footer {
            color: #747b87;
        }

        .logo-icon {
            background: #17191d;
            border-color: #17191d;
            box-shadow: none;
        }

        .header-badge {
            background: #f7f7f8;
            border-color: #e7e8eb;
            color: #6f5318;
        }

        .chat-shell {
            background: #ffffff;
            border-color: #e6e8ec;
            box-shadow: 0 16px 46px rgba(20, 27, 38, 0.08);
            backdrop-filter: none;
        }

        .chat-topbar {
            background: #ffffff;
            border-bottom-color: #eceef1;
        }

        .assistant-avatar {
            background: #17191d;
            color: #ffffff;
            box-shadow: none;
        }

        .assistant-name {
            color: #17191d;
        }

        .btn-reset {
            background: #ffffff;
            border-color: #dfe2e7;
            color: #555d69;
        }

        .btn-reset:hover {
            background: #f7f7f8;
            border-color: #cfd3da;
            color: #17191d;
        }

        .chat-messages {
            background: #fbfbfc;
        }

        .message-avatar {
            background: #17191d;
            color: #ffffff;
        }

        .message-bubble {
            background: #ffffff;
            border-color: #e6e8ec;
            color: #343941;
            box-shadow: 0 3px 12px rgba(20, 27, 38, 0.04);
        }

        .chat-row.user .message-bubble {
            background: #17191d;
            border-color: #17191d;
            color: #ffffff;
            box-shadow: none;
        }

        .typing-bubble span {
            background: #b17a1c;
        }

        .chat-results {
            background: #ffffff;
            border-color: #e3e5e9;
        }

        .result-header h2 span {
            background: #f6efe1;
            color: #785715;
        }

        .result-card {
            background: #ffffff;
            border-color: #e5e7eb;
            box-shadow: 0 8px 24px rgba(20, 27, 38, 0.05);
        }

        .result-card:hover {
            background: #ffffff;
            border-color: #d6ba7a;
            box-shadow: 0 14px 34px rgba(20, 27, 38, 0.09);
        }

        .result-card .card-name {
            color: #17191d;
        }

        .result-card .match-score {
            background: #f6efe1;
            border-color: #ead9b5;
            color: #765616;
        }

        .result-card .tag {
            background: #f6f7f8;
            border-color: #e7e9ed;
            color: #626a76;
        }

        .result-card .tag.highlight {
            background: #f6efe1;
            border-color: #ead9b5;
            color: #765616;
        }

        .result-card .card-meta {
            border-top-color: #eceef1;
            border-bottom-color: #eceef1;
        }

        .result-card .meta-item,
        .result-card .meta-value {
            color: #555d69;
        }

        .card-rules {
            background: #f8f9fa;
            border-color: #eceef1;
            color: #555d69;
        }

        .card-advice {
            background: #fffaf0;
            border-color: #ead9b5;
            color: #5f5135;
        }

        .card-advice .advice-label {
            color: #765616;
        }

        .btn-demo {
            background: #17191d;
            border-color: #17191d;
            color: #ffffff;
        }

        .btn-demo:hover {
            background: #30343a;
            border-color: #30343a;
        }

        .chat-composer-wrap {
            background: #ffffff;
            border-top-color: #eceef1;
        }

        .chat-composer {
            background: #ffffff;
            border-color: #dfe2e7;
        }

        .chat-composer:focus-within {
            border-color: #9c7326;
            box-shadow: 0 0 0 3px rgba(177, 122, 28, 0.1);
        }

        .chat-input {
            color: #17191d;
        }

        .chat-input::placeholder {
            color: #9aa0aa;
        }

        .send-button {
            background: #17191d;
            color: #ffffff;
        }

        .send-button:hover {
            background: #30343a;
        }

        .human-service-card {
            max-width: 720px;
            margin: 16px 0 0;
            padding: 16px 18px;
            border: 1px solid #e5e7eb;
            border-radius: 16px;
            background: #ffffff;
            box-shadow: 0 5px 18px rgba(20, 27, 38, 0.05);
        }

        .human-service-title {
            margin-bottom: 5px;
            color: #17191d;
            font-size: 14px;
            font-weight: 700;
        }

        .human-service-text {
            margin-bottom: 12px;
            color: #747b87;
            font-size: 13px;
            line-height: 1.6;
        }

        .human-service-link {
            min-height: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 9px 15px;
            border-radius: 10px;
            background: #17191d;
            color: #ffffff;
            font-size: 14px;
            font-weight: 650;
            text-decoration: none;
        }

        .human-service-link:hover { background: #30343a; }

        .chat-messages > .human-service-card {
            max-width: min(720px, calc(100% - 42px));
            margin: -8px 0 22px 42px;
        }

        @media (max-width: 700px) {
            .human-service-card { max-width: 100%; margin-left: 0; }
        }

        /* ===== 套餐关键信息高对比展示 ===== */
        .result-card .card-meta {
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin: 14px 0 16px;
            padding: 0;
            border: 0;
        }

        .result-card .meta-item {
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 7px;
            padding: 12px 13px;
            border: 1px solid #dfe3e8;
            border-radius: 12px;
            background: #f8fafc;
        }

        .result-card .meta-label {
            color: #69717d;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: .04em;
        }

        .result-card .meta-value {
            color: #17191d;
            font-size: 17px;
            font-weight: 800;
            line-height: 1.25;
        }

        .result-card .meta-playtype .meta-value {
            display: inline-flex;
            align-items: center;
            padding: 5px 10px;
            border-radius: 8px;
            color: #ffffff;
            font-size: 16px;
            box-shadow: 0 3px 9px rgba(20, 27, 38, .12);
        }

        .result-card .meta-playtype.is-attack .meta-value { background: #c4322b; }
        .result-card .meta-playtype.is-loot .meta-value { background: #6f42c1; }

        .result-card .meta-duration {
            border-color: #cfe0f5;
            background: #f1f7ff;
        }

        .result-card .meta-duration .meta-value { color: #145da0; }

        .result-card .meta-style {
            grid-column: 1 / -1;
            border-color: #cfe8d8;
            background: #f1faf4;
        }

        .result-card .meta-style .meta-value { color: #176b3a; }

        .result-card .meta-price {
            grid-column: 1 / -1;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            border: 1px solid #efc77f;
            background: linear-gradient(135deg, #fff8e9, #fff1d3);
            box-shadow: inset 4px 0 0 #d99118;
        }

        .result-card .meta-price .meta-label {
            color: #7a5314;
            font-size: 13px;
        }

        .result-card .price-value {
            color: #b54708;
            font-size: 32px;
            font-weight: 900;
            line-height: 1;
            letter-spacing: -.02em;
            white-space: nowrap;
        }

        .result-card .price-value small {
            margin-right: 3px;
            font-size: 18px;
            font-weight: 800;
        }

        .result-card .price-value em {
            margin-left: 4px;
            font-size: 14px;
            font-style: normal;
            font-weight: 700;
        }

        @media (max-width: 430px) {
            .result-card .meta-value { font-size: 15px; }
            .result-card .price-value { font-size: 29px; }
        }
    
/* v3.3: readable cards and a compact mobile conversation */
:root { color-scheme: light; }
body { background: #f4f5f7; background-image: radial-gradient(ellipse at top left,#fff8e9,transparent 55%); }
.app-wrapper { max-width: 1180px; }
.header { margin-bottom: 24px; }
.chat-shell { border-radius: 24px; box-shadow: 0 20px 70px #2028380b; overflow: hidden; }
.chat-messages { min-height: 250px; max-height: 48vh; }
.quick-prompts { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 24px; background: white; }
.quick-prompts button { border: 1px solid #dedfe3; background: #fafafa; color: #343941; border-radius: 20px; padding: 9px 14px; cursor: pointer; font: inherit; font-size: 13px; }
.quick-prompts button:hover { background: #fff4d9; border-color: #c39b44; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 16px; }
.result-card { min-width: 0; border-radius: 18px; }
.result-card .card-name { font-size: 20px; overflow-wrap: anywhere; }
.result-card .meta-value { color: #252b36; font-weight: 750; }
.result-card .meta-label { color: #667085; }
.result-card .meta-price .price-value { color: #a8440b; font-size: 36px; line-height: 1.2; }
.result-card .meta-playtype.is-attack .meta-value { color: #a52626; }
.result-card .meta-playtype.is-loot .meta-value { color: #096b51; }
.result-card .meta-style .meta-value { color: #5a3994; }
.rules-details { margin: 12px 0; color: #414957; font-size: 13px; }
.rules-details summary { cursor: pointer; padding: 8px 0; font-weight: 600; }
.card-rules { max-height: 260px; overflow: auto; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #a87c25; outline-offset: 3px; }
[hidden] { display: none !important; }
@media(max-width:600px) { body { padding: 14px 10px 24px; } .chat-shell { border-radius: 18px; } .quick-prompts { padding: 10px 14px; } .chat-messages { max-height: 45dvh; } .message-bubble { max-width: 100%; } .chat-composer-wrap { padding: 12px; } .result-card { padding: 18px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
