        :root {
--light-color: #f8f9fa;
--dark-color: #212529;
--primary-color: #4361ee;
--primary-hover: #3a56d4;
--header-bg: transparent;
--panel-bg: white;
--text-color: #212529;
--border-color: #ddd;
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        body {
            font-family: 'Noto Sans SC', sans-serif;
            background: #f5f7fa;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            color: var(--dark-color);
            transition: all 0.3s ease;
        }
        
        .translator-container {
            width: 100%;
            max-width: 900px;
            background: var(--panel-bg);
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .header {
            padding: 20px;
            color: white;
            text-align: center;
            position: relative;
            overflow: hidden;
            background: var(--header-bg);
        }
        
        .header h1 {
            font-weight: 700;
            font-size: 2rem;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 2;
        }
        
        .header h1 i {
            margin-right: 10px;
        }
        
        .header p {
            opacity: 0.9;
            font-weight: 300;
            position: relative;
            z-index: 2;
        }
        
        .color-cycle {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, #4361ee, #3f37c9, #43DFF4, #43F4C5, #43F472, #90F443, #DFF443, #FF770F, #F44943, #F4437E, #F443BC, #4895ef, #7209b7, #f72585, #b5179e);
            background-size: 600% 600%;
            animation: gradientBG 15s ease infinite;
            z-index: 1;
            transition: opacity 0.3s ease;
        }
        
        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        .content {
            padding: 20px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        
        @media (max-width: 768px) {
            .content {
                grid-template-columns: 1fr;
            }
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--text-color);
        }
        
        .form-control {
            width: 100%;
            padding: 12px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s;
            font-family: inherit;
            background: var(--panel-bg);
            color: var(--text-color);
        }
        
        select.form-control {
            appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 10px center;
            background-size: 15px;
            padding-right: 35px;
        }
        
        textarea.form-control {
            min-height: 150px;
            resize: none;
        }
        
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 12px 20px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            width: 100%;
        }
        
        .btn:hover {
            background: var(--primary-hover);
        }
        
        .btn i {
            margin-right: 8px;
        }
        
        .result-container {
            border: 1px solid var(--border-color);
            border-radius: 8px;
            overflow: hidden;
            background: var(--panel-bg);
        }
        
        .result-header {
            background: var(--light-color);
            padding: 12px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border-color);
        }
        
        .result-header h3 {
            font-weight: 500;
            display: flex;
            align-items: center;
            color: var(--text-color);
        }
        
        .result-header h3 i {
            margin-right: 8px;
            color: var(--primary-color);
        }
        
        .copy-btn {
            background: none;
            border: none;
            color: var(--primary-color);
            cursor: pointer;
            display: flex;
            align-items: center;
            font-size: 0.9rem;
            padding: 5px 10px;
            border-radius: 4px;
            transition: all 0.3s;
        }
        
        .copy-btn:hover {
            background: rgba(67, 97, 238, 0.1);
        }
        
        .copy-btn i {
            margin-right: 5px;
            font-size: 1rem;
        }
        
        .result-content {
            padding: 15px;
            min-height: 150px;
            background: var(--panel-bg);
            color: var(--text-color);
        }
        
        .loading {
            display: none;
            text-align: center;
            padding: 20px;
            color: var(--text-color);
        }
        
        .loading-spinner {
            display: inline-block;
            width: 30px;
            height: 30px;
            border: 3px solid rgba(67, 97, 238, 0.2);
            border-radius: 50%;
            border-top-color: var(--primary-color);
            animation: spin 1s ease-in-out infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .char-count {
            text-align: right;
            font-size: 0.8rem;
            color: #6c757d;
            margin-top: 5px;
        }
        
        /* 主题设置面板 */
        .theme-panel {
            padding: 15px;
            background: var(--light-color);
            border-radius: 8px;
            margin-bottom: 20px;
            border: 1px solid var(--border-color);
        }
        
        .theme-title {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            color: var(--text-color);
        }
        
        .theme-title i {
            margin-right: 8px;
            color: var(--primary-color);
        }
        
        .theme-options {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
        }
        
        .theme-option {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.3s;
        }
        
        .theme-option:hover {
            transform: scale(1.1);
        }
        
        .theme-option.active {
            border-color: var(--dark-color);
        }
        
        .theme-checkbox {
            display: flex;
            align-items: center;
            margin-top: 10px;
        }
        
        .theme-checkbox input {
            margin-right: 8px;
        }
        
        .theme-checkbox label {
            font-size: 0.9rem;
            color: var(--text-color);
        }
        
        /* 语言选择器样式 */
        .language-flag {
            width: 20px;
            height: 15px;
            margin-right: 10px;
            object-fit: cover;
            border-radius: 2px;
        }
        
        /* 主题颜色定义 */
        .theme-default {
--primary-color: #4361ee;
--primary-hover: #3a56d4;
--panel-bg: white;
--text-color: #212529;
--border-color: #ddd;
--header-bg: transparent;
        }
        
        .theme-dark {
--primary-color: #6c757d;
--primary-hover: #5a6268;
--panel-bg: #343a40;
--text-color: #f8f9fa;
--border-color: #454d55;
--light-color: #454d55;
--header-bg: #212529;
        }
        
        .theme-light {
--primary-color: #6c757d;
--primary-hover: #5a6268;
--panel-bg: #f8f9fa;
--text-color: #212529;
--border-color: #dee2e6;
--light-color: #e9ecef;
--header-bg: #e9ecef;
        }
        
        .theme-blue {
--primary-color: #4895ef;
--primary-hover: #3a7bd5;
--panel-bg: white;
--text-color: #212529;
--border-color: #dee2e6;
--header-bg: #4895ef;
        }
        
        .theme-green {
--primary-color: #43aa8b;
--primary-hover: #3a9277;
--panel-bg: white;
--text-color: #212529;
--border-color: #dee2e6;
--header-bg: #43aa8b;
        }
        
        .theme-purple {
--primary-color: #7209b7;
--primary-hover: #5f079a;
--panel-bg: white;
--text-color: #212529;
--border-color: #dee2e6;
--header-bg: #7209b7;
        }
        
        .theme-red {
--primary-color: #f72585;
--primary-hover: #d41a6f;
--panel-bg: white;
--text-color: #212529;
--border-color: #dee2e6;
--header-bg: #f72585;
        }