/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 风格切换器 */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-label {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
    pointer-events: none;
}

.theme-switcher:hover .theme-label {
    opacity: 1;
    transform: translateX(0);
}

.theme-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s;
    position: relative;
}

.theme-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.theme-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    border: 2px solid white;
}

.theme-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    padding: 8px;
    display: none;
    min-width: 180px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-menu.active {
    display: block;
}

.theme-option {
    padding: 12px 14px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.theme-option:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(3px);
}

.theme-preview {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.theme-option:hover .theme-preview {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.default-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.classic-preview {
    background: linear-gradient(135deg, #f5e6d3 0%, #d4af37 100%);
}

.modern-preview {
    background: linear-gradient(135deg, #f5f5f5 0%, #000 100%);
}



/* ========== 默认风格 ========== */
body[data-theme="default"] {
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

body[data-theme="default"] .container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 40px;
}

body[data-theme="default"] h1 {
    text-align: center;
    color: #333;
    margin-bottom: 0;
    font-size: 32px;
    letter-spacing: 8px;
}

body[data-theme="default"] .subtitle {
    display: none;
}

body[data-theme="default"] .header-layout {
    margin-bottom: 30px;
}

body[data-theme="default"] .theme-toggle-btn,
body[data-theme="default"] .history-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

body[data-theme="default"] .theme-toggle-btn:hover,
body[data-theme="default"] .history-btn:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4) !important;
}

body[data-theme="default"] .input-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

body[data-theme="default"] .radio-text {
    color: #333;
}

body[data-theme="default"] .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    margin: 20px auto 0;
    transition: transform 0.2s;
}

body[data-theme="default"] .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 保存按钮样式 */
body[data-theme="default"] .save-case-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

body[data-theme="default"] .save-case-btn:hover {
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4) !important;
}

body[data-theme="default"] .save-image-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

body[data-theme="default"] .save-image-btn:hover {
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4) !important;
}

/* 对话框按钮样式 */
body[data-theme="default"] .dialog-cancel-btn:hover {
    background: #f8f9fa !important;
}

body[data-theme="default"] .dialog-save-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

body[data-theme="default"] .dialog-save-btn:hover {
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4) !important;
}

body[data-theme="default"] .info-table,
body[data-theme="default"] .sizhu-table {
    border: 1px solid #dee2e6;
}

body[data-theme="default"] .info-table td,
body[data-theme="default"] .sizhu-table td {
    border: 1px solid #dee2e6;
}

body[data-theme="default"] .info-table td:first-child,
body[data-theme="default"] .sizhu-table td.label {
    background: #e9ecef;
    border-right: 1px solid #dee2e6;
}

/* ========== 古典风格 ========== */
body[data-theme="classic"] {
    font-family: "KaiTi", "楷体", "STKaiti", serif;
    background: linear-gradient(135deg, #f5e6d3 0%, #d4c5b0 100%);
    min-height: 100vh;
    padding: 20px;
}

body[data-theme="classic"] .container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 253, 245, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(101, 67, 33, 0.3);
    padding: 40px;
    border: 3px solid #8b4513;
}

body[data-theme="classic"] h1 {
    text-align: center;
    color: #8b4513;
    margin-bottom: 0;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.2);
    letter-spacing: 8px;
}

body[data-theme="classic"] .subtitle {
    display: none;
}

body[data-theme="classic"] .header-layout {
    margin-bottom: 30px;
}

body[data-theme="classic"] .theme-toggle-btn,
body[data-theme="classic"] .history-btn {
    background: linear-gradient(135deg, #d4af37 0%, #8b4513 100%) !important;
    color: white !important;
    border: 2px solid #8b4513 !important;
    font-family: inherit !important;
}

body[data-theme="classic"] .theme-toggle-btn:hover,
body[data-theme="classic"] .history-btn:hover {
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4) !important;
}

body[data-theme="classic"] .theme-menu {
    background: rgba(255, 253, 245, 0.98) !important;
    border: 2px solid #d4af37 !important;
}

body[data-theme="classic"] .theme-option:hover {
    background: rgba(244, 235, 220, 0.8) !important;
}

body[data-theme="classic"] .input-section {
    background: rgba(244, 235, 220, 0.6);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid #d4af37;
}

body[data-theme="classic"] .radio-text {
    color: #654321;
    font-size: 16px;
}

body[data-theme="classic"] .btn {
    background: linear-gradient(135deg, #d4af37 0%, #8b4513 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    margin: 20px auto 0;
    font-family: inherit;
    font-weight: bold;
    letter-spacing: 4px;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

body[data-theme="classic"] .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.4);
}

/* 保存按钮样式 - 匹配古典风格 */
body[data-theme="classic"] .save-case-btn {
    background: linear-gradient(135deg, #d4af37 0%, #8b4513 100%) !important;
    padding: 12px 40px !important;
    border-radius: 25px !important;
    font-size: 16px !important;
    font-family: inherit !important;
    font-weight: bold !important;
    letter-spacing: 4px !important;
}

body[data-theme="classic"] .save-case-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.4) !important;
}

body[data-theme="classic"] .save-image-btn {
    background: linear-gradient(135deg, #d4af37 0%, #8b4513 100%) !important;
    padding: 12px 40px !important;
    border-radius: 25px !important;
    font-size: 16px !important;
    font-family: inherit !important;
    font-weight: bold !important;
    letter-spacing: 4px !important;
}

body[data-theme="classic"] .save-image-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.4) !important;
}

/* 对话框按钮样式 - 古典风格 */
body[data-theme="classic"] .dialog-cancel-btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    border: 2px solid #d4af37 !important;
    border-radius: 5px !important;
}

body[data-theme="classic"] .dialog-cancel-btn:hover {
    background: rgba(244, 235, 220, 0.6) !important;
}

body[data-theme="classic"] .dialog-save-btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
    background: linear-gradient(135deg, #d4af37 0%, #8b4513 100%) !important;
    font-family: inherit !important;
    font-weight: bold !important;
    border-radius: 5px !important;
}

body[data-theme="classic"] .dialog-save-btn:hover {
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4) !important;
}

body[data-theme="classic"] .info-table td {
    color: #654321;
}

body[data-theme="classic"] .sizhu-table td {
    color: #654321;
}

body[data-theme="classic"] .gua-name {
    color: #8b4513;
}

body[data-theme="classic"] .gua-symbols {
    color: #654321;
}

body[data-theme="classic"] .info-table,
body[data-theme="classic"] .sizhu-table {
    border: 2px solid #d4af37;
}

body[data-theme="classic"] .info-table td,
body[data-theme="classic"] .sizhu-table td {
    border: 1px solid #d4af37;
}

body[data-theme="classic"] .info-table td:first-child,
body[data-theme="classic"] .sizhu-table td.label {
    background: rgba(244, 235, 220, 0.6);
    border-right: 1px solid #d4af37;
}



/* ========== 简约风格 ========== */
body[data-theme="modern"] {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 40px 20px;
}

body[data-theme="modern"] .container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 0;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
    padding: 60px 50px;
}

body[data-theme="modern"] h1 {
    text-align: center;
    color: #000;
    margin-bottom: 0;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 12px;
}

body[data-theme="modern"] .subtitle {
    display: block;
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-bottom: 50px;
    letter-spacing: 4px;
}

body[data-theme="modern"] .subtitle::before {
    content: 'TIANCANG DIVINATION';
}

body[data-theme="modern"] .header-layout {
    margin-bottom: 10px;
}

body[data-theme="modern"] .theme-toggle-btn,
body[data-theme="modern"] .history-btn {
    background: #000 !important;
    color: white !important;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    font-weight: 300 !important;
}

body[data-theme="modern"] .theme-toggle-btn:hover,
body[data-theme="modern"] .history-btn:hover {
    background: #333 !important;
}

body[data-theme="modern"] .theme-menu {
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
}

body[data-theme="modern"] .theme-option {
    border-radius: 0 !important;
}

body[data-theme="modern"] .theme-option:hover {
    background: #f5f5f5 !important;
}

body[data-theme="modern"] .input-section {
    background: transparent;
    padding: 30px 0;
    margin-bottom: 50px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
}

body[data-theme="modern"] .radio-text {
    color: #666;
    font-weight: 300;
}

body[data-theme="modern"] .btn {
    background: #000;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 0;
    font-size: 16px;
    cursor: pointer;
    display: block;
    margin: 30px auto 0;
    letter-spacing: 2px;
    white-space: nowrap;
    min-width: 150px;
}

body[data-theme="modern"] .btn:hover {
    background: #333;
}

/* 保存按钮样式 - 匹配简约风格 */
body[data-theme="modern"] .save-case-btn {
    background: #000 !important;
    border-radius: 0 !important;
    font-weight: 300 !important;
}

body[data-theme="modern"] .save-case-btn:hover {
    background: #333 !important;
}

body[data-theme="modern"] .save-image-btn {
    background: #000 !important;
    border-radius: 0 !important;
    font-weight: 300 !important;
}

body[data-theme="modern"] .save-image-btn:hover {
    background: #333 !important;
}

/* 对话框按钮样式 - 简约风格 */
body[data-theme="modern"] .dialog-cancel-btn {
    border: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    font-weight: 300 !important;
}

body[data-theme="modern"] .dialog-cancel-btn:hover {
    background: #f5f5f5 !important;
}

body[data-theme="modern"] .dialog-save-btn {
    background: #000 !important;
    border-radius: 0 !important;
    font-weight: 300 !important;
}

body[data-theme="modern"] .dialog-save-btn:hover {
    background: #333 !important;
}

body[data-theme="modern"] .info-table td {
    color: #000;
    font-weight: 300;
}

body[data-theme="modern"] .sizhu-table td {
    color: #000;
    font-weight: 300;
}

body[data-theme="modern"] .gua-name {
    color: #000;
    font-weight: 300;
}

body[data-theme="modern"] .gua-symbols {
    color: #000;
}

body[data-theme="modern"] .info-table,
body[data-theme="modern"] .sizhu-table {
    border: 1px solid #e0e0e0;
}

body[data-theme="modern"] .info-table td,
body[data-theme="modern"] .sizhu-table td {
    border: 1px solid #e0e0e0;
}

body[data-theme="modern"] .info-table td:first-child,
body[data-theme="modern"] .sizhu-table td.label {
    background: #f5f5f5;
    border-right: 1px solid #e0e0e0;
}



/* ========== 科技风格 ========== */
body[data-theme="tech"] {
    font-family: "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    min-height: 100vh;
    padding: 20px;
}

body[data-theme="tech"] .container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

body[data-theme="tech"] h1 {
    text-align: center;
    color: white;
    margin-bottom: 10px;
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 8px;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

body[data-theme="tech"] .subtitle {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 40px;
    letter-spacing: 4px;
}

body[data-theme="tech"] .subtitle::before {
    content: '◇ TIANCANG DIVINATION ◇';
}

body[data-theme="tech"] .input-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

body[data-theme="tech"] .radio-text {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

body[data-theme="tech"] .datetime-input input {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

body[data-theme="tech"] .datetime-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body[data-theme="tech"] .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 50px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    margin: 25px auto 0;
    letter-spacing: 4px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

body[data-theme="tech"] .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

body[data-theme="tech"] .info-table {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body[data-theme="tech"] .info-table td {
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.15);
}

body[data-theme="tech"] .info-table td:first-child {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}

body[data-theme="tech"] .sizhu-table {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body[data-theme="tech"] .sizhu-table td {
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.15);
}

body[data-theme="tech"] .sizhu-table td.label {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}

body[data-theme="tech"] .sizhu-table td.highlight {
    color: #ff6b6b !important;
    font-weight: 700 !important;
    background: rgba(255, 107, 107, 0.15) !important;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

body[data-theme="tech"] .gua-display {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body[data-theme="tech"] .gua-name {
    color: #e0e7ff;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
}

body[data-theme="tech"] .gua-symbols {
    color: #f5f5f5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}



/* 通用样式 */
.radio-group {
    margin-bottom: 20px;
    text-align: center;
}

.radio-group label {
    display: inline-block;
    margin: 0 25px;
    cursor: pointer;
    font-size: 16px;
}

.datetime-input {
    display: none;
    margin-top: 15px;
    text-align: center;
}

.datetime-input.active {
    display: block;
}

.datetime-input input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    margin: 0 10px;
}

.result-section {
    display: none;
    margin-top: 30px;
}

.result-section.active {
    display: block;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.info-table td {
    padding: 15px 20px;
    font-size: 17px;
    font-weight: 500;
    border: 1px solid #dee2e6;
}

.info-table td:first-child {
    width: 120px;
    background: #e9ecef;
    font-weight: 600;
    text-align: center;
    color: #495057;
}

.info-table td {
    text-align: center;
}

/* 十应、公历时间、农历日期的单元格左对齐 */
.info-table tr:nth-child(1) td:not(:first-child),
.info-table tr:nth-child(2) td:not(:first-child),
.info-table tr:nth-child(3) td:not(:first-child) {
    text-align: left;
    padding-left: 20px;
}

.sizhu-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
}

.sizhu-table td {
    padding: 15px 20px;
    font-size: 17px;
    font-weight: 500;
    border: 1px solid #dee2e6;
    text-align: center;
}

.sizhu-table td.label {
    width: 120px;
    background: #e9ecef;
    font-weight: 600;
    color: #495057;
    text-align: center;
}

.sizhu-table td {
    text-align: center;
}

.sizhu-table td.highlight,
.info-table td.highlight {
    color: #e74c3c !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    background: rgba(231, 76, 60, 0.08) !important;
}

.gua-display {
    display: flex;
    justify-content: space-between;
    gap: 0;
    margin: 25px 0;
    padding: 15px 0 25px;
    overflow: visible;
    min-height: 280px;
    width: 100%;
}

.gua-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
}

.gua-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    min-height: 30px;
    letter-spacing: 1px;
}

.gua-symbols {
    font-family: "Courier New", "SimHei", monospace;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.5px;
    width: 100%;
    word-spacing: 0px;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.yao-line {
    white-space: nowrap;
    text-align: center;
    font-size: 15px;
    line-height: 2.0;
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    margin: 8px 0;
}

.yao-gap {
    margin-bottom: 20px;
}

/* 单选按钮组样式 */
.radio-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    width: 200px;
}

.radio-group input[type="radio"] {
    margin-right: 12px;
    flex-shrink: 0;
}

.radio-group .radio-text {
    letter-spacing: 0.5em;
    text-indent: 0.5em;
}

/* 阳爻 - 完整方块 */
.yao-yang {
    display: inline-block;
    width: 120px;
    height: 14px;
    background: #4a4a4a;
    border-radius: 2px;
}

/* 阴爻 - 两个分开的方块 */
.yao-yin {
    display: inline-flex;
    justify-content: space-between;
    width: 120px;
    gap: 14px;
}

.yin-left,
.yin-right {
    display: inline-block;
    width: 53px;
    height: 14px;
    background: #4a4a4a;
    border-radius: 2px;
}

 
 / *   = = = = = = = = = =   �y�R�z�T�^_����  = = = = = = = = = =   * / 
 
 / *   s^g��Y  ( 7 6 8 p x   �NN)   * / 
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   { 
         b o d y   { 
                 p a d d i n g :   1 0 p x ; 
         } 
         
         . c o n t a i n e r   { 
                 p a d d i n g :   2 5 p x   2 0 p x ; 
         } 
         
         h 1   { 
                 f o n t - s i z e :   2 4 p x   ! i m p o r t a n t ; 
                 l e t t e r - s p a c i n g :   4 p x   ! i m p o r t a n t ; 
         } 
         
         . t h e m e - s w i t c h e r   { 
                 t o p :   1 0 p x ; 
                 r i g h t :   1 0 p x ; 
                 g a p :   8 p x ; 
         } 
         
         . t h e m e - l a b e l   { 
                 d i s p l a y :   n o n e ; 
         } 
         
         . t h e m e - b t n   { 
                 w i d t h :   4 5 p x ; 
                 h e i g h t :   4 5 p x ; 
                 f o n t - s i z e :   2 0 p x ; 
         } 
         
         . t h e m e - m e n u   { 
                 r i g h t :   0 ; 
                 m i n - w i d t h :   1 6 0 p x ; 
         } 
         
         . i n p u t - s e c t i o n   { 
                 p a d d i n g :   2 0 p x   1 5 p x ; 
         } 
         
         . r a d i o - g r o u p   l a b e l   { 
                 m a r g i n :   0   1 5 p x ; 
                 f o n t - s i z e :   1 4 p x ; 
         } 
         
         . d a t e t i m e - i n p u t   i n p u t   { 
                 p a d d i n g :   8 p x   1 2 p x ; 
                 f o n t - s i z e :   1 3 p x ; 
                 m a r g i n :   5 p x ; 
         } 
         
         . b t n   { 
                 p a d d i n g :   1 2 p x   3 5 p x ; 
                 f o n t - s i z e :   1 4 p x ; 
         } 
         
         . i n f o - t a b l e   t d   { 
                 p a d d i n g :   1 2 p x   1 5 p x ; 
                 f o n t - s i z e :   1 4 p x ; 
         } 
         
         . i n f o - t a b l e   t d : f i r s t - c h i l d   { 
                 w i d t h :   9 0 p x ; 
                 f o n t - s i z e :   1 3 p x ; 
         } 
         
         . s i z h u - t a b l e   t d   { 
                 p a d d i n g :   1 2 p x   1 0 p x ; 
                 f o n t - s i z e :   1 4 p x ; 
         } 
         
         . s i z h u - t a b l e   t d . l a b e l   { 
                 w i d t h :   8 0 p x ; 
                 f o n t - s i z e :   1 3 p x ; 
         } 
         
         . g u a - d i s p l a y   { 
                 g a p :   3 0 p x ; 
                 p a d d i n g :   2 0 p x   1 0 p x ; 
                 o v e r f l o w - x :   a u t o ; 
         } 
         
         . g u a - n a m e   { 
                 f o n t - s i z e :   1 6 p x ; 
                 m a r g i n - b o t t o m :   1 5 p x ; 
         } 
         
         . g u a - s y m b o l s   { 
                 f o n t - s i z e :   2 0 p x ; 
                 l i n e - h e i g h t :   2 . 5 ; 
         } 
         
         . y a o - l i n e   { 
                 f o n t - s i z e :   2 0 p x ; 
                 l i n e - h e i g h t :   2 . 5 ; 
         } 
 } 
 
 / *   \O\Kb:g  ( 4 8 0 p x   �NN)   * / 
 @ m e d i a   ( m a x - w i d t h :   4 8 0 p x )   { 
         b o d y   { 
                 p a d d i n g :   5 p x ; 
         } 
         
         . c o n t a i n e r   { 
                 p a d d i n g :   2 0 p x   1 5 p x ; 
                 b o r d e r - r a d i u s :   1 0 p x ; 
         } 
         
         h 1   { 
                 f o n t - s i z e :   2 0 p x   ! i m p o r t a n t ; 
                 l e t t e r - s p a c i n g :   3 p x   ! i m p o r t a n t ; 
                 m a r g i n - b o t t o m :   2 0 p x   ! i m p o r t a n t ; 
         } 
         
         . s u b t i t l e   { 
                 f o n t - s i z e :   1 1 p x   ! i m p o r t a n t ; 
                 m a r g i n - b o t t o m :   2 0 p x   ! i m p o r t a n t ; 
         } 
         
         . t h e m e - b t n   { 
                 w i d t h :   4 0 p x ; 
                 h e i g h t :   4 0 p x ; 
                 f o n t - s i z e :   1 8 p x ; 
         } 
         
         . t h e m e - m e n u   { 
                 m i n - w i d t h :   1 4 0 p x ; 
         } 
         
         . t h e m e - o p t i o n   { 
                 p a d d i n g :   1 0 p x   1 2 p x ; 
                 f o n t - s i z e :   1 3 p x ; 
         } 
         
         . t h e m e - p r e v i e w   { 
                 w i d t h :   2 8 p x ; 
                 h e i g h t :   2 8 p x ; 
         } 
         
         . i n p u t - s e c t i o n   { 
                 p a d d i n g :   1 5 p x   1 2 p x ; 
         } 
         
         . r a d i o - g r o u p   { 
                 m a r g i n - b o t t o m :   1 5 p x ; 
         } 
         
         . r a d i o - g r o u p   l a b e l   { 
                 d i s p l a y :   b l o c k ; 
                 m a r g i n :   8 p x   0 ; 
                 f o n t - s i z e :   1 4 p x ; 
         } 
         
         . d a t e t i m e - i n p u t   i n p u t   { 
                 d i s p l a y :   b l o c k ; 
                 w i d t h :   1 0 0 % ; 
                 m a r g i n :   8 p x   0 ; 
                 p a d d i n g :   1 0 p x ; 
         } 
         
         . b t n   { 
                 w i d t h :   1 0 0 % ; 
                 p a d d i n g :   1 2 p x   2 0 p x ; 
                 f o n t - s i z e :   1 4 p x ; 
                 l e t t e r - s p a c i n g :   3 p x ; 
         } 
         
         . i n f o - t a b l e   { 
                 f o n t - s i z e :   1 3 p x ; 
         } 
         
         . i n f o - t a b l e   t d   { 
                 p a d d i n g :   1 0 p x   1 2 p x ; 
                 f o n t - s i z e :   1 3 p x ; 
         } 
         
         . i n f o - t a b l e   t d : f i r s t - c h i l d   { 
                 w i d t h :   7 5 p x ; 
                 f o n t - s i z e :   1 2 p x ; 
                 p a d d i n g - r i g h t :   1 0 p x ; 
         } 
         
         . s i z h u - t a b l e   { 
                 f o n t - s i z e :   1 3 p x ; 
         } 
         
         . s i z h u - t a b l e   t d   { 
                 p a d d i n g :   1 0 p x   5 p x ; 
                 f o n t - s i z e :   1 3 p x ; 
         } 
         
         . s i z h u - t a b l e   t d . l a b e l   { 
                 w i d t h :   6 0 p x ; 
                 f o n t - s i z e :   1 2 p x ; 
         } 
         
         . g u a - d i s p l a y   { 
                 f l e x - w r a p :   w r a p ; 
                 g a p :   2 5 p x ; 
                 p a d d i n g :   1 5 p x   5 p x ; 
         } 
         
         . g u a - i t e m   { 
                 f l e x :   0   0   c a l c ( 5 0 %   -   1 5 p x ) ; 
                 m i n - w i d t h :   1 4 0 p x ; 
         } 
         
         . g u a - n a m e   { 
                 f o n t - s i z e :   1 5 p x ; 
                 m a r g i n - b o t t o m :   1 2 p x ; 
         } 
         
         . g u a - s y m b o l s   { 
                 f o n t - s i z e :   1 8 p x ; 
                 l i n e - h e i g h t :   2 . 3 ; 
         } 
         
         . y a o - l i n e   { 
                 f o n t - s i z e :   1 8 p x ; 
                 l i n e - h e i g h t :   2 . 3 ; 
         } 
 } 
 
 / *   ��\O\Kb:g  ( 3 6 0 p x   �NN)   * / 
 @ m e d i a   ( m a x - w i d t h :   3 6 0 p x )   { 
         h 1   { 
                 f o n t - s i z e :   1 8 p x   ! i m p o r t a n t ; 
                 l e t t e r - s p a c i n g :   2 p x   ! i m p o r t a n t ; 
         } 
         
         . g u a - i t e m   { 
                 f l e x :   0   0   1 0 0 % ; 
                 m a r g i n - b o t t o m :   1 5 p x ; 
         } 
         
         . g u a - d i s p l a y   { 
                 f l e x - d i r e c t i o n :   c o l u m n ; 
                 a l i g n - i t e m s :   c e n t e r ; 
         } 
         
         . g u a - s y m b o l s   { 
                 f o n t - s i z e :   1 6 p x ; 
                 l i n e - h e i g h t :   2 . 2 ; 
         } 
         
         . y a o - l i n e   { 
                 f o n t - s i z e :   1 6 p x ; 
                 l i n e - h e i g h t :   2 . 2 ; 
         } 
         
         . s i z h u - t a b l e   t d   { 
                 p a d d i n g :   8 p x   3 p x ; 
                 f o n t - s i z e :   1 2 p x ; 
         } 
         
         . i n f o - t a b l e   t d   { 
                 f o n t - s i z e :   1 2 p x ; 
         } 
 } 
 
 / *   *jO\!j_OS  * / 
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   a n d   ( o r i e n t a t i o n :   l a n d s c a p e )   { 
         . c o n t a i n e r   { 
                 m a x - w i d t h :   9 5 % ; 
         } 
         
         . g u a - d i s p l a y   { 
                 f l e x - w r a p :   n o w r a p ; 
                 o v e r f l o w - x :   a u t o ; 
                 p a d d i n g :   1 5 p x   1 0 p x ; 
         } 
         
         . g u a - i t e m   { 
                 f l e x :   0   0   a u t o ; 
         } 
 } 
 
 
 
 
 / *   ���eQ:S�W  * / 
 . q u e s t i o n - s e c t i o n   { 
         m a r g i n :   2 0 p x   0 ; 
         a n i m a t i o n :   s l i d e I n   0 . 3 s   e a s e ; 
 } 
 
 @ k e y f r a m e s   s l i d e I n   { 
         f r o m   { 
                 o p a c i t y :   0 ; 
                 t r a n s f o r m :   t r a n s l a t e Y ( - 1 0 p x ) ; 
         } 
         t o   { 
                 o p a c i t y :   1 ; 
                 t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ; 
         } 
 } 
 
 . q u e s t i o n - i n p u t - t a b l e   { 
         w i d t h :   1 0 0 % ; 
         b o r d e r - c o l l a p s e :   c o l l a p s e ; 
         b a c k g r o u n d :   w h i t e ; 
         b o r d e r - r a d i u s :   1 0 p x ; 
         o v e r f l o w :   h i d d e n ; 
         b o x - s h a d o w :   0   2 p x   8 p x   r g b a ( 0 , 0 , 0 , 0 . 0 8 ) ; 
 } 
 
 . q u e s t i o n - i n p u t - t a b l e   t d   { 
         p a d d i n g :   1 5 p x   2 0 p x ; 
         b o r d e r :   1 p x   s o l i d   # d e e 2 e 6 ; 
 } 
 
 . q u e s t i o n - i n p u t - t a b l e   t d . l a b e l   { 
         w i d t h :   1 2 0 p x ; 
         b a c k g r o u n d :   # e 9 e c e f ; 
         f o n t - w e i g h t :   6 0 0 ; 
         t e x t - a l i g n :   r i g h t ; 
         c o l o r :   # 4 9 5 0 5 7 ; 
         f o n t - s i z e :   1 7 p x ; 
 } 
 
 . q u e s t i o n - i n p u t - t a b l e   i n p u t   { 
         w i d t h :   1 0 0 % ; 
         b o r d e r :   n o n e ; 
         o u t l i n e :   n o n e ; 
         f o n t - s i z e :   1 6 p x ; 
         c o l o r :   # 3 3 3 ; 
         b a c k g r o u n d :   t r a n s p a r e n t ; 
         f o n t - f a m i l y :   i n h e r i t ; 
 } 
 
 . q u e s t i o n - i n p u t - t a b l e   i n p u t : : p l a c e h o l d e r   { 
         c o l o r :   # 9 9 9 ; 
 } 
 
 / *   �>f:yh�<h  * / 
 . q u e s t i o n - t a b l e   { 
         w i d t h :   1 0 0 % ; 
         b o r d e r - c o l l a p s e :   c o l l a p s e ; 
         m a r g i n - b o t t o m :   2 0 p x ; 
         b a c k g r o u n d :   # f f f 9 e 6 ; 
         b o r d e r :   2 p x   s o l i d   # f f d 7 0 0 ; 
         b o r d e r - r a d i u s :   1 0 p x ; 
         o v e r f l o w :   h i d d e n ; 
 } 
 
 . q u e s t i o n - t a b l e   t d   { 
         p a d d i n g :   1 5 p x   2 0 p x ; 
         f o n t - s i z e :   1 7 p x ; 
         f o n t - w e i g h t :   5 0 0 ; 
 } 
 
 . q u e s t i o n - t a b l e   t d . l a b e l   { 
         w i d t h :   1 2 0 p x ; 
         b a c k g r o u n d :   # f f f 3 c d ; 
         f o n t - w e i g h t :   6 0 0 ; 
         t e x t - a l i g n :   r i g h t ; 
         c o l o r :   # 8 5 6 4 0 4 ; 
 } 
 
 . q u e s t i o n - t a b l e   t d . q u e s t i o n - c o n t e n t   { 
         c o l o r :   # 8 5 6 4 0 4 ; 
         f o n t - w e i g h t :   6 0 0 ; 
 } 
 
 
 / *   ���eQFh7h_  * / 
 . q u e s t i o n - i n p u t   { 
         w i d t h :   1 0 0 % ; 
         b o r d e r :   n o n e ; 
         o u t l i n e :   n o n e ; 
         f o n t - s i z e :   1 7 p x ; 
         c o l o r :   # 3 3 3 ; 
         b a c k g r o u n d :   t r a n s p a r e n t ; 
         f o n t - f a m i l y :   i n h e r i t ; 
         f o n t - w e i g h t :   5 0 0 ; 
         p a d d i n g :   0 ; 
 } 
 
 . q u e s t i o n - i n p u t : : p l a c e h o l d e r   { 
         c o l o r :   # 9 9 9 ; 
         f o n t - w e i g h t :   n o r m a l ; 
 } 
 
 . q u e s t i o n - i n p u t : f o c u s   { 
         c o l o r :   # 8 5 6 4 0 4 ; 
 } 
 
 . q u e s t i o n - s e c t i o n   { 
         a n i m a t i o n :   s l i d e I n   0 . 3 s   e a s e ; 
 } 
 
 @ k e y f r a m e s   s l i d e I n   { 
         f r o m   { 
                 o p a c i t y :   0 ; 
                 t r a n s f o r m :   t r a n s l a t e Y ( - 1 0 p x ) ; 
         } 
         t o   { 
                 o p a c i t y :   1 ; 
                 t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ; 
         } 
 } 
 
 
 
/* 默认风格动爻样式 - 亮橙色圆点 */


/* 古典风格动爻样式 - 金色圆点 */


/* 简约风格动爻样式 - 深蓝色圆点 */


/* 科技风格动爻样式 - 亮紫色圆点 */


/* 移动端动爻样式优化 - 圆点位置调整 */
@media (max-width: 768px) {
    .gua-display {
        gap: 40px;
    }
    
    body[data-theme="default"] .dong-yao,
    body[data-theme="classic"] .dong-yao,
    body[data-theme="modern"] .dong-yao,
    body[data-theme="tech"] .dong-yao {
        font-weight: 900;
    }
    
    body[data-theme="default"] .dong-yao::after,
    body[data-theme="classic"] .dong-yao::after,
    body[data-theme="modern"] .dong-yao::after,
    body[data-theme="tech"] .dong-yao::after {
        width: 6px;
        height: 6px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .gua-display {
        gap: 25px;
    }
    
    body[data-theme="default"] .dong-yao,
    body[data-theme="classic"] .dong-yao,
    body[data-theme="modern"] .dong-yao,
    body[data-theme="tech"] .dong-yao {
        font-weight: 900;
    }
    
    body[data-theme="default"] .dong-yao::after,
    body[data-theme="classic"] .dong-yao::after,
    body[data-theme="modern"] .dong-yao::after,
    body[data-theme="tech"] .dong-yao::after {
        width: 5px;
        height: 5px;
        right: -8px;
    }
}

@media (max-width: 360px) {
    body[data-theme="default"] .dong-yao::after,
    body[data-theme="classic"] .dong-yao::after,
    body[data-theme="modern"] .dong-yao::after,
    body[data-theme="tech"] .dong-yao::after {
        width: 4px;
        height: 4px;
        right: -6px;
    }
}

/* ========== 动爻样式 - 所有风格 ========== */

/* 默认风格 - 方块颜色 */
body[data-theme="default"] .yao-yang,
body[data-theme="default"] .yin-left,
body[data-theme="default"] .yin-right {
    background: #4a4a4a;
}

body[data-theme="default"] .dong-yao .yao-yang,
body[data-theme="default"] .dong-yao .yin-left,
body[data-theme="default"] .dong-yao .yin-right {
    background: #e74c3c;
}

/* 古典风格 - 方块颜色 */
body[data-theme="classic"] .yao-yang,
body[data-theme="classic"] .yin-left,
body[data-theme="classic"] .yin-right {
    background: #654321;
}

body[data-theme="classic"] .dong-yao .yao-yang,
body[data-theme="classic"] .dong-yao .yin-left,
body[data-theme="classic"] .dong-yao .yin-right {
    background: #c41e3a;
}

/* 简约风格 - 方块颜色 */
body[data-theme="modern"] .yao-yang,
body[data-theme="modern"] .yin-left,
body[data-theme="modern"] .yin-right {
    background: #000;
}

body[data-theme="modern"] .dong-yao .yao-yang,
body[data-theme="modern"] .dong-yao .yin-left,
body[data-theme="modern"] .dong-yao .yin-right {
    background: #e74c3c;
}



/* 移动端优化 */


/* 按钮样式调整 */
.btn {
    max-width: 200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 表格标签居中对齐 */
.info-table td:first-child {
    text-align: center !important;
}
