    /* 粒子画布样式 */
    #particle-canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        pointer-events: none;
    }

    :root {
        --primary-color: #3a2e39;
        --secondary-color: #7d5a5a;
        --surface-100: #f8f5f0;
        --surface-200: #e8e3db;
        --surface-800: #1e1a1d;
        --transition-curve: cubic-bezier(0.4, 0, 0.2, 1);

        --floral-color: #F5E8C9; /* 花香调*/
        --oriental-color: #A8463C; /* 东方调 */
        --woody-color: #8D7966; /* 木质调 */
        --leather-color: #616161; /* 皮革调 */
        --chypre-color: #5B7E5B; /* 西普调 */
        --fougere-color: #B8A3CF; /* 馥奇调 */
        --aromatic-color: #BFD0B8; /* 芳香调 */
        --green-color: #88A07C; /* 绿叶调 */
        --water-color: #A8DDE9; /* 水生调 */
        --citrus-color: #FFDC64; /* 柑橘调 */
        --gourmand-color: #D9A172; /* 美食调 */
        --fruity-color: #ED68A5; /* 果香调 */

        --unknown-color: #b0b0b0;

        --accent-color: #8a6d8b;
        --success-color: #6a8d73;
        --warning-color: #d4a5a5;
        --import-color: #6a8d8b;
    }

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        -webkit-tap-highlight-color: transparent;
    }

    body {
        font-family: 'Segoe UI', system-ui, sans-serif;
        background: var(--surface-100);
        color: var(--surface-800);
        margin: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        user-select: none;
        position: relative;
        overflow-x: hidden;
        line-height: 1.6;
    }

    /* 主容器 */
    .app-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        position: relative;
        padding-bottom: 60px;
        z-index: 1;
    }

    /* 底部导航 */
    .app-bottom-nav {
        position: fixed;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        height: 60px;
        width: 90%;
        max-width: 600px;
        background: rgba(58, 46, 57, 0.9);
        display: flex;
        z-index: 1002;
        border-radius: 30px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        overflow: hidden;
    }

    .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.7);
        font-size: 12px;
        text-decoration: none;
        transition: all 0.2s;
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }

    .nav-item svg {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
        transition: all 0.2s;
        z-index: 2;
        fill: currentColor;
    }

    .nav-item.active {
        color: #fff;
    }

    .nav-item.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 0 0 4px 4px;
    }

    .nav-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    /* 页面内容 */
    .page {
        width: 100%;
        height: 100%;
        flex-direction: column;
        padding: 1rem;
    }

    /* 侧边栏 */
    .ingredient-sidebar {
        width: 280px;
        height: calc(100vh - 160px);
        background: white;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s var(--transition-curve);
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1001;
        background-color: white;
        overflow-y: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
        display: flex;
        flex-direction: column;
        transform: translateX(-100%);
        padding-bottom: 80px;
        box-sizing: border-box;
        touch-action: pan-y;
        border-radius: 0 16px 16px 0;
        bottom: 75px;
    }

    .ingredient-sidebar::-webkit-scrollbar {
        display: none;
    }

    .ingredient-sidebar.active {
        transform: translateX(0);
    }

    .sidebar-header {
        padding: 1rem;
        text-align: center;
        font-weight: bold;
        font-size: 1.2rem;
        background: var(--primary-color);
        color: white;
    }

    .sidebar-subtitle {
        text-align: center;
        font-size: 0.85rem;
        padding: 0 1rem 1rem;
        color: #ccc;
    }

    .search-container {
        display: flex;
        align-items: center;
        margin: 10px;
        padding: 0 10px;
    }

    .search-container input {
        flex: 1;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 20px;
        margin-right: 5px;
        font-size: 14px;
    }

    .search-button {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--primary-color);
    }

    .search-button svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
    }

    .sidebar-menu {
        padding: 0.5rem;
        flex: 1;
        overflow-y: auto;
        padding-bottom: 120px;
        margin-bottom: 80px;
    }

    .category-btn {
        display: flex;
        align-items: center;
        padding: 10px 16px;
        border: none;
        background: transparent;
        cursor: pointer;
        transition: all 0.2s var(--transition-curve);
        width: 100%;
        text-align: left;
        color: var(--surface-800);
        border-radius: 8px;
        margin: 2px 0;
        font-size: 14px;
    }

    .category-btn:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .category-btn svg {
        width: 24px;
        height: 24px;
        margin-right: 12px;
        fill: var(--secondary-color);
    }

    .ingredient-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 16px 6px 40px;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 13px;
        position: relative;
    }

    .ingredient-item:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .ingredient-item.disabled {
        color: #999;
        cursor: not-allowed;
        opacity: 0.5;
    }

    .ingredient-value {
        font-size: 11px;
        color: var(--primary-color);
        min-width: 40px;
        text-align: right;
    }

    .ingredient-warning {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--warning-color);
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ingredient-warning svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

    /* 侧边栏底部按钮 */
    .sidebar-footer {
        padding: 12px 10px;
        border-top: 1px solid var(--surface-200);
        display: flex;
        flex-direction: column;
        gap: 8px;
        position: fixed;
        bottom: 15px;
        left: 10px;
        right: 10px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
        z-index: 10;
        margin: 0 auto;
        max-width: calc(100% - 20px);
    }

    .action-btn {
        display: flex;
        align-items: center;
        padding: 10px 16px;
        border-radius: 8px;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 14px;
        background: var(--surface-200);
        color: var(--surface-800);
    }

    .action-btn:hover {
        background: var(--surface-200);
        opacity: 0.9;
    }

    .action-btn svg {
        width: 24px;
        height: 24px;
        margin-right: 12px;
        fill: currentColor;
    }

    .action-btn.save {
        background: var(--primary-color);
        color: white;
    }

    .action-btn.reset {
        background: #d4a5a5;
        color: white;
    }

    .action-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* 调整雷达图容器 */
    .radar-container {
        position: relative;
        width: 100%;
        max-width: 600px;
        height: calc(40vh - 60px);
        min-height: 250px;
        margin: 1rem auto;
        padding-top: 80px;
    }

    /* 雷达图Logo */
    .radar-logo {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 200px;
        height: auto;
        opacity: 2;
        z-index: 1;
        transition: opacity 0.5s ease;
    }

    .radar-logo.hidden {
        opacity: 0;
        visibility: hidden;
    }

    /* 滑块条容器 */
    .slider-wrapper {
        position: relative;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        min-height: 100px;
    }

    .sliders-container {
        position: fixed;
        bottom: 85px;
        width: 100%;
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
        padding: 0 1rem;
        max-height: 30vh;
        overflow-y: auto;
        touch-action: pan-y;
        height: auto;
        transition: all 0.3s var(--transition-curve);
    }

    .slider-container {
        display: grid;
        grid-template-columns: 1fr 60px 30px;
        align-items: center;
        gap: 0.5rem;
        padding: 8px 12px;
        margin: 6px 0;
        background: white;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.3s var(--transition-curve);
        position: relative;
        width: 100%;
        z-index: 10;
        pointer-events: auto;
        transform-origin: bottom center;
        max-height: 100px;
        overflow: hidden;
    }

    .slider-container.collapsed {
        transform: scaleY(0);
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 0;
        margin-bottom: 0;
        border-width: 0;
        pointer-events: none;
    }

    .slider-content {
        display: flex;
        flex-direction: column;
    }

    .slider-name {
        font-size: 13px;
        color: var(--surface-800);
        font-weight: 500;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
    }

    /* 香调标签样式 */
    .scent-tag {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 10px;
        color: white;
        text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    }

    .floral-tag {
        background-color: var(--floral-color);
        color: var(--surface-800);
    }

    .oriental-tag {
        background-color: var(--oriental-color);
    }

    .woody-tag {
        background-color: var(--woody-color);
    }

    .leather-tag {
        background-color: var(--leather-color);
    }

    .chypre-tag {
        background-color: var(--chypre-color);
    }

    .fougere-tag {
        background-color: var(--fougere-color);
    }

    .aromatic-tag {
        background-color: var(--aromatic-color);
        color: var(--surface-800);
    }

    .green-tag {
        background-color: var(--green-color);
    }

    .water-tag {
        background-color: var(--water-color);
        color: var(--surface-800);
    }

    .citrus-tag {
        background-color: var(--citrus-color);
        color: var(--surface-800);
    }

    .gourmand-tag {
        background-color: var(--gourmand-color);
    }

    .fruity-tag {
        background-color: var(--fruity-color);
    }

    input[type="range"] {
        width: 100%;
        height: 10px;
        background: #e0e0e0;
        border-radius: 5px;
        outline: none;
        -webkit-appearance: none;
        margin: 8px 0;
        touch-action: manipulation;
    }

    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        background: var(--primary-color);
        border-radius: 50%;
        cursor: pointer;
        transition: transform 0.2s;
    }

    .value-display {
        font-family: monospace;
        font-size: 0.8rem;
        color: var(--secondary-color);
        text-align: center;
        min-width: 50px;
    }

    .close-slider {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--secondary-color);
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0.6;
        transition: opacity 0.2s;
    }

    .close-slider:hover {
        opacity: 1;
    }

    .close-slider svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

    /* 调整泡泡容器位置 */
    .bubble-container {
        position: absolute;
        top: 10px;
        width: 100%;
        padding: 10px 0;
        min-height: 80px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        justify-content: flex-start;
        align-items: center;
        z-index: 1000;
        pointer-events: none;
    }

    /* 前调泡泡行 */
    .top-note-bubbles {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 8px;
    }

    /* 中调泡泡行 */
    .middle-note-bubbles {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 8px;
    }

    /* 后调泡泡行 */
    .base-note-bubbles {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .ingredient-bubble {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s var(--transition-curve);
        position: relative;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        animation: float 4s ease-in-out infinite;
        opacity: 0;
        transform: translateY(20px);
        pointer-events: none;
        pointer-events: auto;
    }

    .ingredient-bubble.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* 颜色标记 */
    .ingredient-bubble.floral {
        background-color: var(--floral-color);
    }

    .ingredient-bubble.oriental {
        background-color: var(--oriental-color);
    }

    .ingredient-bubble.woody {
        background-color: var(--woody-color);
    }

    .ingredient-bubble.leather {
        background-color: var(--leather-color);
    }

    .ingredient-bubble.chypre {
        background-color: var(--chypre-color);
    }

    .ingredient-bubble.fougere {
        background-color: var(--fougere-color);
    }

    .ingredient-bubble.aromatic {
        background-color: var(--aromatic-color);
    }

    .ingredient-bubble.green {
        background-color: var(--green-color);
    }

    .ingredient-bubble.water {
        background-color: var(--water-color);
    }

    .ingredient-bubble.citrus {
        background-color: var(--citrus-color);
    }

    .ingredient-bubble.gourmand {
        background-color: var(--gourmand-color);
    }

    .ingredient-bubble.fruity {
        background-color: var(--fruity-color);
    }

    .ingredient-bubble.unknown {
        background-color: var(--unknown-color);
    }

    .ingredient-bubble.imported {
        background-color: var(--import-color);
    }

    .bubble-name {
        font-size: 9px;
        color: white;
        text-align: center;
        margin-top: 2px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        max-width: 90%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bubble-value {
        font-size: 10px;
        font-weight: bold;
        color: white;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    /* 泡泡删除按钮 */
    .bubble-close {
        position: absolute;
        top: -5px;
        right: -5px;
        width: 16px;
        height: 16px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        cursor: pointer;
        opacity: 1;
        transition: opacity 0.2s;
        z-index: 2;
    }

    .bubble-close svg {
        width: 12px;
        height: 12px;
        fill: #666;
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-6px);
        }
    }

    .ingredient-bubble:nth-child(1) { animation-delay: 0.1s; }
    .ingredient-bubble:nth-child(2) { animation-delay: 0.3s; }
    .ingredient-bubble:nth-child(3) { animation-delay: 0.5s; }
    .ingredient-bubble:nth-child(4) { animation-delay: 0.2s; }
    .ingredient-bubble:nth-child(5) { animation-delay: 0.4s; }
    .ingredient-bubble:nth-child(6) { animation-delay: 0.6s; }

    /* 档案页面样式 */
    .knowledge-page {
        max-width: 600px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .knowledge-search-container {
        background: white;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .knowledge-search-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--oriental-color), var(--floral-color), var(--woody-color));
    }

    .knowledge-title {
        margin-bottom: 20px;
        color: var(--primary-color);
        font-size: 24px;
        font-weight: 600;
    }

    .knowledge-subtitle {
        color: var(--secondary-color);
        margin-bottom: 24px;
        font-size: 15px;
        line-height: 1.6;
    }

    .search-box {
        display: flex;
        max-width: 500px;
        margin: 0 auto;
        border-radius: 50px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .search-box:focus-within {
        box-shadow: 0 5px 20px rgba(85, 85, 85, 0.3);
        transform: translateY(-2px);
    }

    .search-input {
        flex: 1;
        padding: 16px 24px;
        border: none;
        font-size: 16px;
        outline: none;
        background: #f8f9fa;
    }

    .search-button-large {
        background: var(--accent-color);
        color: white;
        border: none;
        padding: 0 28px;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-button-large:hover {
        background: #7a5d7b;
    }

    .search-button-large svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
    }

    .search-info {
        margin-top: 16px;
        font-size: 14px;
        color: var(--secondary-color);
    }

    .knowledge-card {
        background: white;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .knowledge-card h3 {
        margin-bottom: 16px;
        color: var(--primary-color);
        font-size: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .knowledge-card h3 svg {
        width: 24px;
        height: 24px;
        fill: var(--accent-color);
    }

    .knowledge-card p {
        font-size: 15px;
        line-height: 1.7;
        color: var(--secondary-color);
        margin-bottom: 15px;
    }

    .feature-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-top: 30px;
    }

    .feature-card {
        background: white;
        border-radius: 16px;
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .feature-card svg {
        width: 36px;
        height: 36px;
        margin-bottom: 15px;
        fill: var(--accent-color);
    }

    .feature-card h4 {
        font-size: 18px;
        color: var(--primary-color);
        margin-bottom: 10px;
    }

    .feature-card p {
        font-size: 14px;
        color: var(--secondary-color);
        line-height: 1.6;
    }

    /* 配方页面样式 */
    .profile-page {
        max-width: 600px;
        margin: 0 auto;
    }

    .profile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }

    .paste-btn {
        display: flex;
        align-items: center;
        padding: 8px 16px;
        background: var(--accent-color);
        color: white;
        border: none;
        border-radius: 30px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.3s;
    }

    .paste-btn:hover {
        background: #7a5d7b;
    }

    .paste-btn svg {
        width: 20px;
        height: 20px;
        margin-right: 6px;
        fill: currentColor;
    }

    .saved-formula {
        background: white;
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        position: relative;
    }

    .saved-formula h3 {
        margin-bottom: 8px;
        color: var(--primary-color);
        font-size: 18px;
    }

    .formula-details {
        font-size: 14px;
        color: var(--secondary-color);
        margin-bottom: 8px;
        line-height: 1.6;
    }

    .formula-details p {
        margin: 4px 0;
    }

    /* 配方操作按钮 */
    .formula-actions {
        position: absolute;
        top: 16px;
        right: 16px;
        display: flex;
        gap: 8px;
    }

    .formula-action-btn {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--secondary-color);
        padding: 4px;
        opacity: 0.6;
        transition: opacity 0.2s;
    }

    .formula-action-btn:hover {
        opacity: 1;
    }

    .formula-action-btn svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .formula-ingredient-chart {
        height: 150px;
        margin-top: 10px;
    }

    /* 模态框样式 */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2000;
    }

    .modal-content {
        background: white;
        border-radius: 8px;
        padding: 20px;
        width: 90%;
        max-width: 500px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .modal-title {
        font-size: 18px;
        margin-bottom: 16px;
        color: var(--primary-color);
    }

    .modal-subtitle {
        font-size: 14px;
        color: var(--secondary-color);
        margin-bottom: 16px;
    }

    .modal-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 20px;
    }

    .modal-btn {
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        border: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s;
    }

    .modal-btn-primary {
        background: var(--primary-color);
        color: white;
    }

    .modal-btn-primary:hover {
        background: #2a1f29;
    }

    .modal-btn-secondary {
        background: var(--surface-200);
        color: var(--surface-800);
    }

    .modal-btn-secondary:hover {
        background: #d5d5d5;
    }

    .modal-btn-accent {
        background: var(--accent-color);
        color: white;
    }

    .modal-btn-accent:hover {
        background: #7a5d7b;
    }

    .input-group {
        margin-bottom: 16px;
    }

    .input-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: 500;
        color: var(--primary-color);
    }

    .input-group input, 
    .input-group select,
    .input-group textarea {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
        transition: border-color 0.2s;
    }

    .input-group input:focus, 
    .input-group select:focus,
    .input-group textarea:focus {
        border-color: var(--accent-color);
        outline: none;
    }

    .formula-textarea {
        min-height: 120px;
        font-family: monospace;
        font-size: 13px;
        resize: vertical;
    }

    .example-box {
        background: var(--surface-100);
        border-radius: 6px;
        padding: 12px;
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.5;
        border-left: 3px solid var(--accent-color);
    }

    .example-title {
        font-weight: bold;
        margin-bottom: 6px;
        color: var(--primary-color);
    }

    .example-content {
        font-family: monospace;
        white-space: pre-wrap;
        word-break: break-all;
        color: var(--secondary-color);
    }

    .notification {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(255, 255, 255, 0.95);
        color: #5a5e5c;
        padding: 12px 30px;
        border-radius: 30px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        z-index: 3000;
        display: flex;
        align-items: center;
        font-size: 16px;
        animation: fadeInOut 3s ease-in-out;
        pointer-events: none;
    }

    .notification svg {
        width: 20px;
        height: 20px;
        margin-right: 8px;
        fill: currentColor;
    }

    @keyframes fadeInOut {
        0%, 100% { opacity: 0; transform: translate(-50%, -10px); }
        10%, 90% { opacity: 1; transform: translate(-50%, 0); }
    }

    .import-status {
        margin-top: 15px;
        padding: 10px;
        border-radius: 6px;
        background: #f8f9fa;
        font-size: 14px;
        color: #666;
    }

    .import-success {
        color: var(--success-color);
        font-weight: bold;
    }

    .import-error {
        color: #d4a5a5;
        font-weight: bold;
    }

    .formula-summary {
        font-size: 13px;
        margin: 10px 0;
        padding: 10px;
        background: #f9f9f9;
        border-radius: 6px;
    }

    .formula-summary strong {
        color: var(--primary-color);
    }

    .import-tag {
        background: var(--import-color);
        color: white;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 11px;
        margin-left: 5px;
        display: inline-block;
    }

    .unknown-tag {
        background: var(--unknown-color);
        color: white;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 11px;
        margin-left: 5px;
        display: inline-block;
    }

    /* 新增的香调自动识别样式 */
    .auto-scenario-container {
        background: var(--surface-100);
        border-radius: 8px;
        padding: 12px;
        margin-top: 10px;
        border-left: 3px solid var(--accent-color);
    }

    .scenario-display {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px;
        background: white;
        border-radius: 6px;
        margin-top: 8px;
        border: 1px solid var(--surface-200);
    }

    .scenario-label {
        font-weight: bold;
        color: var(--primary-color);
    }

    .scenario-value {
        font-weight: bold;
        color: var(--accent-color);
        font-size: 16px;
    }

    .scenario-explanation {
        font-size: 13px;
        color: var(--secondary-color);
        margin-top: 8px;
        line-height: 1.4;
    }

    /* 响应式调整 */
    @media (max-width: 768px) {
        .radar-container {
            height: 40vh;
            min-height: 250px;
            padding-top: 80px;
        }
        
        .ingredient-sidebar {
            width: 280px;
        }
        
        .feature-grid {
            grid-template-columns: 1fr;
        }
        
        .search-box {
            flex-direction: column;
            border-radius: 16px;
        }
        
        .search-input {
            border-radius: 16px 16px 0 0;
        }
        
        .search-button-large {
            padding: 12px;
            border-radius: 0 0 16px 16px;
        }
    }

    /* 小屏幕优化 */
    @media (max-width: 480px) {
        .ingredient-bubble {
            width: 36px;
            height: 36px;
        }
        
        .bubble-value {
            font-size: 9px;
        }
        
        .bubble-name {
            font-size: 8px;
        }
        
        .sliders-container {
            bottom: 80px;
            max-height: 25vh;
        }
        
        .slider-container {
            padding: 6px 10px;
            margin: 4px 0;
        }
        
        .slider-name {
            font-size: 12px;
        }
        
        input[type="range"] {
            height: 8px;
            margin: 6px 0;
        }
        
        input[type="range"]::-webkit-slider-thumb {
            width: 14px;
            height: 14px;
        }
        
        .value-display {
            font-size: 0.7rem;
        }
        
        .knowledge-search-container {
            padding: 16px;
        }
        
        .knowledge-title {
            font-size: 20px;
        }
        
        .knowledge-subtitle {
            font-size: 14px;
        }
        
        .search-input {
            padding: 12px 16px;
            font-size: 14px;
        }
        
        .search-button-large svg {
            width: 20px;
            height: 20px;
        }
    }