:root {
    /* 基础配色 - 柔和可爱风格 */
    --primary-color: #8e6dba;
    --secondary-color: #a78bda;
    --highlight-color: #ff7eb6;
    --key-color: #34495e;
    --key-text: #ecf0f1;
    --key-highlight: #ff7eb6;
    --key-shadow: rgba(0, 0, 0, 0.3);
    --background-color: #f8f5ff;
    --container-bg: #ffffff;
    --text-color: #4a4a6a;
    --card-bg-color: #fff;
    --shadow-color: rgba(142, 109, 186, 0.15);
    --header-bg: linear-gradient(135deg, #8e6dba, #a78bda);
    --footer-bg: #6a4c93;
    --footer-text: #f0e6ff;
    --border-radius: 15px;
    --box-shadow: 0 8px 20px var(--shadow-color);
}

[data-theme="dark"] {
    --primary-color: #bb86fc;
    --secondary-color: #a370f7;
    --highlight-color: #ff79c6;
    --background-color: #1a1a2e;
    --text-color: #e1e1e1;
    --card-bg-color: #252541;
    --shadow-color: rgba(187, 134, 252, 0.2);
    --header-bg: linear-gradient(135deg, #483d8b, #6a4c93);
    --footer-bg: #2c2c44;
    --footer-text: #e1e1e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--header-bg);
    color: white;
    padding: 25px 0;
    text-align: center;
    box-shadow: var(--box-shadow);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
    opacity: 0.7;
}

header h1 {
    margin: 0;
    font-size: 2.8rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header h1 i {
    color: var(--highlight-color);
    margin-right: 10px;
}

header p {
    margin: 15px 0 0;
    font-size: 1.3rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.keyboard-container {
    background-color: #222;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    position: relative;
}

.keyboard {
    display: block;
    width: 100%;
    position: relative;
}

.keyboard-row {
    display: flex;
    margin-bottom: 5px;
    justify-content: flex-start;
}

.key {
    width: 45px;
    height: 45px;
    background-color: #333;
    color: white;
    border-radius: 3px;
    margin: 2px;
    font-size: 12px;
    box-shadow: 0 2px 0 #111;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

/* Ensure spacing between icons and label inside a key */
.key i {
    margin-right: 6px;
}

/* Better spacing for keys with both icon and text */
.key i+span {
    margin-left: 4px;
}

.key i:not(:last-child) {
    margin-right: 4px;
}

.key:hover {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--key-shadow);
    background-color: var(--secondary-color);
}

.key:active,
.key.pressed {
    transform: translateY(3px);
    box-shadow: none;
}

.function-key {
    font-size: 12px;
}

.backspace {
    width: 105px;
}

.tab {
    width: 80px;
    justify-content: flex-start;
    padding-left: 10px;
}

.caps {
    width: 95px;
    justify-content: flex-start;
    padding-left: 10px;
}

.enter {
    width: 95px;
}

.shift {
    justify-content: flex-start;
    padding-left: 10px;
}

.left-shift {
    width: 110px;
}

.right-shift {
    width: 110px;
}

.ctrl {
    width: 60px;
}

.space {
    width: 350px;
}

.numpad {
    position: absolute;
    right: 10px;
    top: 60px;
    display: grid;
    grid-template-columns: repeat(4, 45px);
    grid-gap: 3px;
}

.numpad .keyboard-row {
    display: contents;
}

.numpad-plus {
    grid-column: 4;
    grid-row: 2 / span 2;
    height: 93px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.numpad-enter {
    grid-column: 4;
    grid-row: 4 / span 2;
    height: 93px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.numpad-zero {
    grid-column: 1 / span 2;
    width: 93px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 15px;
}

.highlight {
    background-color: #00b7ff;
    color: white;
    box-shadow: 0 2px 0 rgba(0, 150, 215, 0.5);
    border-color: #0099cc;
}

.key-info-container {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(142, 109, 186, 0.1);
}

.key-info-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--highlight-color));
}

.key-info-content {
    max-width: 900px;
    margin: 0 auto;
}

.key-info-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    border-bottom: 2px dashed rgba(142, 109, 186, 0.3);
    padding-bottom: 10px;
}

.key-info-content h2 i {
    margin-right: 10px;
    color: var(--highlight-color);
}

.key-info-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.welcome-message {
    text-align: center;
    padding: 30px 20px;
    font-size: 1.3rem !important;
    color: var(--primary-color);
    background-color: rgba(142, 109, 186, 0.05);
    border-radius: 10px;
    border: 1px dashed rgba(142, 109, 186, 0.3);
    margin: 20px 0;
}

.welcome-message i {
    font-size: 2rem;
    color: var(--highlight-color);
    display: block;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

.key-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--highlight-color);
    padding-bottom: 10px;
    display: inline-block;
}

.key-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.key-usage h3,
.key-shortcut h4 {
    color: var(--primary-color);
    margin: 20px 0 15px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

.key-usage h3 i,
.key-shortcut h4 i {
    margin-right: 10px;
    color: var(--highlight-color);
}

.key-usage-list,
.shortcut-list {
    list-style-type: none;
    padding-left: 10px;
}

.key-usage-list li,
.shortcut-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.key-usage-list li::before {
    content: "✨";
    position: absolute;
    left: 0;
    color: var(--highlight-color);
}

.shortcut-combo {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 10px;
    font-family: monospace;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 20px 0;
    margin-top: 60px;
    text-align: center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    font-size: 0.9rem;
}

/* 箭头键区域 */
.arrow-keys {
    position: absolute;
    right: 230px;
    bottom: 10px;
    display: grid;
    grid-template-areas:
        ". up ."
        "left down right";
    grid-template-columns: repeat(3, 45px);
    grid-template-rows: repeat(2, 45px);
    gap: 3px;
}

.arrow-keys .key[data-key="ArrowUp"] {
    grid-area: up;
}

.arrow-keys .key[data-key="ArrowLeft"] {
    grid-area: left;
}

.arrow-keys .key[data-key="ArrowDown"] {
    grid-area: down;
}

.arrow-keys .key[data-key="ArrowRight"] {
    grid-area: right;
}

/* 指示灯 */
.indicator-lights {
    position: absolute;
    right: 25px;
    top: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator-light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #3c3;
    box-shadow: 0 0 6px #3c3;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    animation: pulse 2s infinite;
}

.indicator-light:hover {
    transform: scale(1.3);
    box-shadow: 0 0 10px #3c3;
    background-color: #4d4;
}

.indicator-light:active,
.indicator-light.pressed {
    transform: scale(1.1);
    background-color: var(--highlight-color);
    box-shadow: 0 0 12px var(--highlight-color);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Dark theme support for indicator lights */
[data-theme="dark"] .indicator-light {
    background-color: #3c3;
    box-shadow: 0 0 6px #3c3;
}

[data-theme="dark"] .indicator-light:hover {
    background-color: #4d4;
    box-shadow: 0 0 10px #4d4;
}

/* Hide indicator lights on tablets and mobile */
@media (max-width: 992px) {
    .indicator-lights {
        display: none;
    }
}

/* 确保主键盘区域不与数字键盘重叠 */
.keyboard>.keyboard-row {
    max-width: calc(100% - 220px);
}

/* Hide mobile auxiliary keys on desktop */
.auxiliary-keys {
    display: none;
}

/* Hide rotation hint on desktop and landscape */
.rotation-hint {
    display: none;
}

@media (max-width: 1200px) {
    .keyboard-container {
        padding: 15px;
        min-height: 350px;
    }

    .keyboard>.keyboard-row {
        max-width: calc(100% - 180px);
    }

    .arrow-keys {
        right: 190px;
    }
}

/* Tablet optimizations */
@media (max-width: 992px) and (min-width: 769px) {
    .keyboard-container {
        padding: 12px;
    }

    .key {
        width: 40px;
        height: 42px;
        font-size: 11px;
        margin: 2px;
    }

    .backspace {
        width: 95px;
    }

    .tab {
        width: 70px;
    }

    .caps {
        width: 80px;
    }

    .enter {
        width: 80px;
    }

    .left-shift {
        width: 95px;
    }

    .right-shift {
        width: 95px;
    }

    .ctrl {
        width: 52px;
    }

    .space {
        width: 300px;
    }

    /* Keep desktop layout but smaller */
    .numpad {
        grid-template-columns: repeat(4, 40px);
        right: 8px;
    }

    .arrow-keys {
        right: 200px;
        grid-template-columns: repeat(3, 40px);
        grid-template-rows: repeat(2, 40px);
    }
}

@media (max-width: 992px) {
    .keyboard-container {
        overflow-x: auto;
        min-height: auto;
    }

    .keyboard {
        width: 1000px;
        max-width: none;
    }

    .keyboard>.keyboard-row {
        max-width: none;
    }

    .theme-switch-wrapper {
        top: auto;
        bottom: 20px;
        right: 20px;
    }
}

/* Mobile Portrait - Show rotation hint */
@media (max-width: 768px) and (orientation: portrait) {
    .keyboard-container {
        position: relative;
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #2c3e50, #34495e);
    }

    .keyboard {
        display: none;
    }

    .rotation-hint {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        color: white;
        padding: 30px 20px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 15px;
        backdrop-filter: blur(10px);
        border: 2px dashed rgba(255, 255, 255, 0.3);
    }

    .rotation-hint i {
        font-size: 4rem;
        margin-bottom: 20px;
        color: var(--highlight-color);
        animation: rotate 2s ease-in-out infinite;
    }

    .rotation-hint h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        color: white;
    }

    .rotation-hint p {
        font-size: 1.1rem;
        line-height: 1.6;
        opacity: 0.9;
        margin-bottom: 10px;
    }

    @keyframes rotate {

        0%,
        100% {
            transform: rotate(0deg);
        }

        25% {
            transform: rotate(-90deg);
        }

        75% {
            transform: rotate(-90deg);
        }
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .key-info-content h2 {
        font-size: 1.3rem;
    }

    .welcome-message {
        font-size: 1rem !important;
    }
}

/* Mobile Landscape - Ultra-compact keyboard layout */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        font-size: 12px;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    /* Hide navigation bar in landscape mode */
    .navbar {
        display: none;
    }

    /* Hide header in landscape mode */
    header {
        display: none;
    }

    .container {
        padding: 0 8px;
        max-width: 100%;
    }

    /* Ultra-compact keyboard container */
    .keyboard-container {
        padding: 8px 4px;
        margin-bottom: 8px;
        margin-top: 8px;
        position: relative;
        overflow: visible;
        border-radius: 6px;
    }

    .keyboard {
        width: 100%;
        max-width: 100%;
        position: relative;
    }

    /* Ensure main keyboard doesn't overlap with numpad */
    .keyboard>.keyboard-row {
        max-width: calc(100% - 170px);
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    /* Restore desktop-like layout for landscape */
    .numpad,
    .arrow-keys {
        display: grid;
    }

    .auxiliary-keys {
        display: none;
    }

    /* Ultra-compact key sizes */
    .key {
        width: 32px;
        height: 32px;
        font-size: 8px;
        margin: 0.8px;
        padding: 1px;
        line-height: 1;
        border-radius: 3px;
        box-shadow: 0 1px 0 #111;
    }

    .function-key {
        font-size: 7px;
        padding: 0.5px;
    }

    /* Ultra-compact special key widths */
    .backspace {
        width: 72px;
        font-size: 7px;
    }

    .tab {
        width: 55px;
        padding-left: 4px;
        font-size: 7px;
    }

    .caps {
        width: 63px;
        padding-left: 4px;
        font-size: 7px;
    }

    .enter {
        width: 63px;
        font-size: 7px;
    }

    .left-shift {
        width: 75px;
        padding-left: 4px;
        font-size: 7px;
    }

    .right-shift {
        width: 75px;
        padding-left: 4px;
        font-size: 7px;
    }

    .ctrl {
        width: 40px;
        font-size: 7px;
    }

    .space {
        width: 220px;
        font-size: 8px;
    }

    /* Ultra-compact keyboard rows */
    .keyboard-row {
        margin-bottom: 1px;
        flex-wrap: nowrap;
    }

    /* Ultra-compact numpad with desktop-like layout */
    .numpad {
        position: absolute;
        right: 4px;
        top: 30px;
        display: grid;
        grid-template-columns: repeat(4, 32px);
        grid-gap: 0.8px;
    }

    .numpad .keyboard-row {
        display: contents;
    }

    .numpad .key {
        font-size: 7px;
        width: 32px;
        height: 32px;
    }

    /* Numpad Add (+) extends down to row 3 */
    .numpad-plus {
        grid-column: 4;
        grid-row: 2 / span 2;
        height: 66px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Numpad Enter extends down to row 5 */
    .numpad-enter {
        grid-column: 4;
        grid-row: 4 / span 2;
        height: 66px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Numpad 0 extends across to column 2 */
    .numpad-zero {
        grid-column: 1 / span 2;
        width: 66px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding-left: 8px;
    }

    /* Ultra-compact arrow keys */
    .arrow-keys {
        position: absolute;
        right: 150px;
        bottom: 4px;
        grid-template-columns: repeat(3, 32px);
        grid-template-rows: repeat(2, 32px);
        gap: 0.8px;
    }

    /* Show indicator lights on mobile landscape */
    .indicator-lights {
        display: flex;
        right: 15px;
        top: 8px;
        gap: 4px;
    }

    .indicator-light {
        width: 6px;
        height: 6px;
    }

    /* Ultra-compact info section */
    .key-info-container {
        padding: 12px 8px;
        margin-bottom: 8px;
        border-radius: 8px;
    }

    .key-info-content h2 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .welcome-message {
        font-size: 0.85rem !important;
        padding: 12px 8px;
        line-height: 1.3;
    }

    /* Ultra-compact icon spacing */
    .key i+span {
        margin-left: 2px;
    }

    .backspace i,
    .tab i,
    .enter i,
    .shift i {
        font-size: 6px;
        margin-right: 1px;
    }

    /* Ensure no text wrapping */
    .key {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Special handling for keys with both icon and text */
    .backspace,
    .tab,
    .enter,
    .shift {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1px;
        flex-wrap: nowrap;
    }

    /* Ultra-compact footer */
    .footer {
        padding: 6px 0;
        margin-top: 12px;
        font-size: 0.7rem;
    }

    /* Specific row adjustments to prevent overlap */
    .keyboard-row:nth-child(1) {
        /* Function keys */
        max-width: calc(100% - 10px);
    }

    .keyboard-row:nth-child(2) {
        /* Number row */
        max-width: calc(100% - 70px);
    }

    .keyboard-row:nth-child(3) {
        /* QWERTY row */
        max-width: calc(100% - 70px);
    }

    .keyboard-row:nth-child(4) {
        /* ASDF row */
        max-width: calc(100% - 70px);
    }

    .keyboard-row:nth-child(5) {
        /* ZXCV row */
        max-width: calc(100% - 170px);
    }

    .keyboard-row:nth-child(6) {
        /* Bottom row */
        max-width: calc(100% - 170px);
    }
}

/* Small-phone portrait - Enhanced rotation hint */
@media (max-width: 480px) and (orientation: portrait) {
    .rotation-hint {
        padding: 25px 15px;
    }

    .rotation-hint i {
        font-size: 3.5rem;
        margin-bottom: 15px;
    }

    .rotation-hint h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .rotation-hint p {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 0.9rem;
    }
}

/* Small-phone landscape - Maximum compactness */
@media (max-width: 480px) and (orientation: landscape) {
    body {
        font-size: 11px;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    /* Hide navigation bar in landscape mode */
    .navbar {
        display: none;
    }

    /* Hide header in landscape mode */
    header {
        display: none;
    }

    .container {
        padding: 0 4px;
        max-width: 100%;
    }

    /* Maximum compact keyboard container */
    .keyboard-container {
        padding: 4px 2px;
        margin-bottom: 4px;
        margin-top: 6px;
        border-radius: 4px;
        position: relative;
        overflow: visible;
    }

    .keyboard {
        width: 100%;
        max-width: 100%;
        position: relative;
    }

    /* Ensure main keyboard doesn't overlap with numpad */
    .keyboard>.keyboard-row {
        max-width: calc(100% - 140px);
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .keyboard-row {
        margin-bottom: 0.5px;
    }

    /* Maximum compact key sizes */
    .key {
        width: 28px;
        height: 28px;
        font-size: 7px;
        margin: 0.5px;
        border-radius: 2px;
        padding: 0.5px;
        line-height: 1;
        box-shadow: 0 1px 0 #111;
    }

    .function-key {
        font-size: 6px;
        padding: 0.3px;
    }

    /* Maximum compact special key widths */
    .backspace {
        width: 60px;
        font-size: 6px;
    }

    .tab {
        width: 46px;
        padding-left: 3px;
        font-size: 6px;
    }

    .caps {
        width: 52px;
        padding-left: 3px;
        font-size: 6px;
    }

    .enter {
        width: 52px;
        font-size: 6px;
    }

    .left-shift {
        width: 62px;
        padding-left: 3px;
        font-size: 6px;
    }

    .right-shift {
        width: 62px;
        padding-left: 3px;
        font-size: 6px;
    }

    .ctrl {
        width: 34px;
        font-size: 6px;
    }

    .space {
        width: 180px;
        font-size: 7px;
    }

    /* Maximum compact numpad with desktop-like layout */
    .numpad {
        position: absolute;
        right: 2px;
        top: 25px;
        display: grid;
        grid-template-columns: repeat(4, 28px);
        grid-gap: 0.5px;
    }

    .numpad .keyboard-row {
        display: contents;
    }

    .numpad .key {
        font-size: 6px;
        width: 28px;
        height: 28px;
    }

    /* Numpad Add (+) extends down to row 3 */
    .numpad-plus {
        grid-column: 4;
        grid-row: 2 / span 2;
        height: 57px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Numpad Enter extends down to row 5 */
    .numpad-enter {
        grid-column: 4;
        grid-row: 4 / span 2;
        height: 57px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Numpad 0 extends across to column 2 */
    .numpad-zero {
        grid-column: 1 / span 2;
        width: 57px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding-left: 6px;
    }

    /* Maximum compact arrow keys */
    .arrow-keys {
        position: absolute;
        right: 125px;
        bottom: 2px;
        grid-template-columns: repeat(3, 28px);
        grid-template-rows: repeat(2, 28px);
        gap: 0.5px;
    }

    /* Show indicator lights on mobile landscape */
    .indicator-lights {
        display: flex;
        right: 12px;
        top: 6px;
        gap: 3px;
    }

    .indicator-light {
        width: 5px;
        height: 5px;
    }

    /* Maximum compact info section */
    .key-info-container {
        padding: 8px 4px;
        margin-bottom: 4px;
        border-radius: 6px;
    }

    .key-info-content h2 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .welcome-message {
        font-size: 0.75rem !important;
        padding: 8px 6px;
        line-height: 1.2;
    }

    /* Maximum compact icon spacing */
    .key i+span {
        margin-left: 1px;
    }

    .backspace i,
    .tab i,
    .enter i,
    .shift i {
        font-size: 5px;
        margin-right: 0.5px;
    }

    /* Ensure no text wrapping */
    .key {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Special handling for keys with both icon and text */
    .backspace,
    .tab,
    .enter,
    .shift {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5px;
        flex-wrap: nowrap;
    }

    /* Maximum compact footer */
    .footer {
        padding: 4px 0;
        margin-top: 8px;
        font-size: 0.6rem;
    }

    /* Specific row adjustments for maximum compactness */
    .keyboard-row:nth-child(1) {
        /* Function keys */
        max-width: calc(100% - 5px);
    }

    .keyboard-row:nth-child(2) {
        /* Number row */
        max-width: calc(100% - 60px);
    }

    .keyboard-row:nth-child(3) {
        /* QWERTY row */
        max-width: calc(100% - 60px);
    }

    .keyboard-row:nth-child(4) {
        /* ASDF row */
        max-width: calc(100% - 60px);
    }

    .keyboard-row:nth-child(5) {
        /* ZXCV row */
        max-width: calc(100% - 140px);
    }

    .keyboard-row:nth-child(6) {
        /* Bottom row */
        max-width: calc(100% - 140px);
    }

    /* Hide auxiliary keys on small landscape */
    .auxiliary-keys {
        display: none;
    }

    /* Optimize hover effects for touch devices */
    .key:hover {
        transform: none;
        background-color: var(--secondary-color);
    }

    .key:active,
    .key.pressed {
        transform: translateY(1px);
        box-shadow: none;
    }

    /* Ensure proper touch targets */
    .key {
        min-width: 28px;
        min-height: 28px;
        touch-action: manipulation;
    }

    /* Optimize scrolling for small screens */
    body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Prevent zoom on input focus */
    input,
    select,
    textarea {
        font-size: 16px;
    }
}

/* Extra small screens (iPhone SE, etc.) */
@media (max-width: 375px) and (orientation: landscape) {
    .key {
        width: 26px;
        height: 26px;
        font-size: 6px;
        margin: 0.3px;
    }

    .function-key {
        font-size: 5px;
    }

    /* Even more compact special keys */
    .backspace {
        width: 55px;
    }

    .tab {
        width: 42px;
    }

    .caps {
        width: 48px;
    }

    .enter {
        width: 48px;
    }

    .left-shift,
    .right-shift {
        width: 58px;
    }

    .ctrl {
        width: 32px;
    }

    .space {
        width: 160px;
    }

    /* Adjust numpad with desktop-like layout */
    .numpad {
        grid-template-columns: repeat(4, 26px);
        right: 1px;
        top: 22px;
    }

    .numpad .keyboard-row {
        display: contents;
    }

    .numpad .key {
        width: 26px;
        height: 26px;
    }

    /* Numpad Add (+) extends down to row 3 */
    .numpad-plus {
        grid-column: 4;
        grid-row: 2 / span 2;
        height: 53px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Numpad Enter extends down to row 5 */
    .numpad-enter {
        grid-column: 4;
        grid-row: 4 / span 2;
        height: 53px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Numpad 0 extends across to column 2 */
    .numpad-zero {
        grid-column: 1 / span 2;
        width: 53px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding-left: 5px;
    }

    .arrow-keys {
        grid-template-columns: repeat(3, 26px);
        grid-template-rows: repeat(2, 26px);
        right: 115px;
    }

    /* Further reduce spacing */
    header {
        padding: 3px 0;
        margin-bottom: 3px;
    }

    header h1 {
        font-size: 1rem;
    }

    header p {
        font-size: 0.65rem;
    }

    .keyboard-container {
        padding: 3px 1px;
        margin-bottom: 3px;
    }

    .key-info-container {
        padding: 6px 3px;
        margin-bottom: 3px;
    }

    .welcome-message {
        font-size: 0.7rem !important;
        padding: 6px 4px;
    }
}

/* 主题切换开关 */
.theme-switch-wrapper {
    display: none;
    /* 隐藏旧的主题切换按钮 */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.key-info-container {
    animation: fadeIn 0.5s ease-in-out;
}

/* 添加广告位样式 */
.ad-container {
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-in-out;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.ad-card {
    border-radius: var(--border-radius);
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.ad-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

.primary-ad {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-color: rgba(102, 126, 234, 0.3);
}

.secondary-ad {
    background: linear-gradient(135deg, rgba(237, 100, 166, 0.1), rgba(236, 72, 153, 0.1));
    border-color: rgba(236, 72, 153, 0.3);
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.ad-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--primary-color);
    border-bottom: 2px dashed rgba(142, 109, 186, 0.2);
    padding-bottom: 10px;
}

.primary-ad .ad-title i {
    color: #f59e0b;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

.secondary-ad .ad-title i {
    color: #ef4444;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

.ad-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ad-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.5);
}

.primary-ad .ad-link:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #4f46e5;
    transform: translateX(3px);
}

.secondary-ad .ad-link:hover {
    background-color: rgba(236, 72, 153, 0.1);
    color: #db2777;
    transform: translateX(3px);
}

.ad-link i {
    margin-right: 8px;
    font-size: 1rem;
}

/* 优化键盘信息区域 */
.key-info-container {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(142, 109, 186, 0.1);
}

.key-info-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--highlight-color));
}

.key-info-content {
    max-width: 900px;
    margin: 0 auto;
}

#keyDetails {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: inset 0 0 15px rgba(142, 109, 186, 0.1);
    border: 1px solid rgba(142, 109, 186, 0.1);
}

.key-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--highlight-color);
    padding-bottom: 10px;
    display: inline-block;
}

.key-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ad-grid {
        grid-template-columns: 1fr;
    }

    .ad-links-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .ad-links-grid {
        grid-template-columns: 1fr;
    }

    .ad-card {
        padding: 15px;
    }
}

/* 导航栏样式 */
.navbar {
    background-color: var(--card-bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(142, 109, 186, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.nav-logo i {
    margin-right: 10px;
    color: var(--highlight-color);
}

.nav-logo a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-logo a:hover {
    color: var(--highlight-color);
}

.nav-logo i {
    margin-right: 8px;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link i {
    margin-right: 5px;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(142, 109, 186, 0.1);
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* 主题切换按钮 */
.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 15px;
    padding: 5px 10px;
    background-color: rgba(142, 109, 186, 0.1);
    border-radius: 30px;
}

.theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.light-icon {
    color: #f59e0b;
}

.dark-icon {
    color: #6366f1;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin: 0 8px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* 关于页面样式 */
.about-container {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease-in-out;
}

.about-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(142, 109, 186, 0.2);
}

.about-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.about-section p,
.about-section li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.about-section ul,
.about-section ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
        margin-bottom: 15px;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--card-bg-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-link {
        width: 100%;
        margin: 8px 0;
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .theme-toggle {
        margin: 12px 0 0;
        width: 100%;
        justify-content: center;
    }

    .nav-toggle {
        display: block;
    }

    .nav-logo a {
        font-size: 1.2rem;
    }
}

/* 添加到现有样式表中 - 美化关于页面 */
.tips-list {
    list-style-type: none;
    padding-left: 5px;
    margin: 20px 0;
}

.tips-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.tips-list li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--highlight-color);
    font-size: 1.2rem;
}

.tips-list li strong {
    color: var(--primary-color);
    font-weight: 600;
}

.author-info {
    margin-top: 20px;
    font-style: italic;
    color: var(--primary-color);
}

.author-info i {
    margin-right: 8px;
}

/* 更新页脚版权年份 */
.footer p {
    margin: 10px 0;
    font-size: 0.9rem;
}

/* 页脚链接样式，确保与主题一致且可读 */
.footer a {
    color: var(--footer-text);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 优化暗色模式下的文字区域 */
[data-theme="dark"] .key-info-container {
    background-color: rgba(45, 45, 65, 0.8);
    border: 1px solid rgba(187, 134, 252, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] #keyDetails {
    background-color: rgba(35, 35, 55, 0.7);
    border: 1px solid rgba(187, 134, 252, 0.15);
    box-shadow: inset 0 0 15px rgba(187, 134, 252, 0.1);
}

[data-theme="dark"] .key-title {
    color: var(--primary-color);
    border-bottom-color: var(--highlight-color);
}

[data-theme="dark"] .key-description {
    color: rgba(225, 225, 225, 0.9);
}

[data-theme="dark"] .key-usage-list li:before,
[data-theme="dark"] .shortcut-list li:before {
    color: var(--highlight-color);
}

[data-theme="dark"] .shortcut-combo {
    background-color: rgba(187, 134, 252, 0.15);
    border: 1px solid rgba(187, 134, 252, 0.3);
    color: #e1e1e1;
}

[data-theme="dark"] .welcome-message {
    background-color: rgba(187, 134, 252, 0.1);
    border: 1px dashed rgba(187, 134, 252, 0.3);
    color: #e1e1e1;
}

[data-theme="dark"] .welcome-message i {
    color: var(--highlight-color);
}

[data-theme="dark"] .key-info-content h2 {
    color: var(--primary-color);
    border-bottom-color: rgba(187, 134, 252, 0.3);
}

[data-theme="dark"] .key-info-content h2 i {
    color: var(--highlight-color);
}

/* 优化暗色模式下的广告区域 */
[data-theme="dark"] .ad-card {
    background-color: rgba(45, 45, 65, 0.7);
    backdrop-filter: blur(15px);
}

[data-theme="dark"] .primary-ad {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-color: rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .secondary-ad {
    background: linear-gradient(135deg, rgba(237, 100, 166, 0.15), rgba(236, 72, 153, 0.15));
    border-color: rgba(236, 72, 153, 0.3);
}

[data-theme="dark"] .ad-title {
    color: var(--primary-color);
    border-bottom-color: rgba(187, 134, 252, 0.3);
}

[data-theme="dark"] .ad-link {
    background-color: rgba(255, 255, 255, 0.05);
    color: #e1e1e1;
}

[data-theme="dark"] .primary-ad .ad-link:hover {
    background-color: rgba(102, 126, 234, 0.2);
    color: #a5b4fc;
}

[data-theme="dark"] .secondary-ad .ad-link:hover {
    background-color: rgba(236, 72, 153, 0.2);
    color: #f9a8d4;
}

[data-theme="dark"] .primary-ad .ad-title i {
    color: #fbbf24;
}

[data-theme="dark"] .secondary-ad .ad-title i {
    color: #fb7185;
}

/* 添加到现有样式表中 - 产品推荐页面样式 */
.products-intro {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(142, 109, 186, 0.1);
}

.products-intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--highlight-color));
}

.intro-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.intro-content h2 i {
    margin-right: 10px;
    color: var(--highlight-color);
}

.intro-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1.1rem;
}

.products-container {
    margin-bottom: 40px;
}

.product-category {
    margin-bottom: 50px;
}

.category-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(142, 109, 186, 0.2);
    padding-bottom: 10px;
}

.category-title i {
    margin-right: 10px;
    color: var(--highlight-color);
}

.category-desc {
    margin-bottom: 25px;
    color: var(--text-color);
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(142, 109, 186, 0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--highlight-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.product-rating {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.product-rating i {
    color: #f59e0b;
    margin-right: 2px;
}

.product-rating span {
    margin-left: 5px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.product-features span {
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    background-color: rgba(142, 109, 186, 0.1);
    padding: 4px 10px;
    border-radius: 15px;
    color: var(--primary-color);
}

.product-features span i {
    margin-right: 5px;
    color: var(--highlight-color);
}

.product-price {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.original-price {
    text-decoration: line-through;
    color: #888;
    margin-right: 10px;
    font-size: 0.9rem;
}

.current-price {
    color: #e53e3e;
    font-size: 1.4rem;
    font-weight: bold;
}

.product-button {
    display: block;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.product-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.buying-guide {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-top: 50px;
    border: 1px solid rgba(142, 109, 186, 0.1);
}

.buying-guide h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(142, 109, 186, 0.2);
    padding-bottom: 10px;
}

.buying-guide h2 i {
    margin-right: 10px;
    color: var(--highlight-color);
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.guide-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.guide-item h3 i {
    margin-right: 10px;
    color: var(--highlight-color);
}

.guide-item p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.guide-item ul {
    padding-left: 20px;
}

.guide-item li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.guide-item strong {
    color: var(--primary-color);
}

.disclaimer {
    background-color: rgba(142, 109, 186, 0.1);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    font-size: 0.9rem;
    color: var(--text-color);
    border-left: 4px solid var(--primary-color);
}

.disclaimer i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* 暗色模式适配 */
[data-theme="dark"] .product-card {
    background-color: rgba(45, 45, 65, 0.8);
    border: 1px solid rgba(187, 134, 252, 0.2);
}

[data-theme="dark"] .product-features span {
    background-color: rgba(187, 134, 252, 0.15);
}

[data-theme="dark"] .buying-guide,
[data-theme="dark"] .products-intro {
    background-color: rgba(45, 45, 65, 0.8);
    border: 1px solid rgba(187, 134, 252, 0.2);
}

[data-theme="dark"] .disclaimer {
    background-color: rgba(187, 134, 252, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .guide-content {
        grid-template-columns: 1fr;
    }

    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* 添加产品亮点样式 */
.product-highlights {
    margin-bottom: 15px;
}

.product-highlights p {
    color: var(--text-color);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* 暗色模式适配 */
[data-theme="dark"] .product-highlights p {
    color: rgba(225, 225, 225, 0.9);
}