/* 面相功能样式 */

/* 面相控制区域 */
.mianxiang-control {
    margin: 10px 0;
    padding: 0;
}

/* 表单样式 */
.mianxiang-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* TAB选项卡样式 */
.mianxiang-tabs {
    display: flex;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 4px;
    margin-bottom: 10px;
}

.mianxiang-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.mianxiang-tab.active {
    background: white;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mianxiang-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

/* 暗色主题选项卡样式 */
body.dark-theme .mianxiang-tabs {
    background: #25252B;
}

body.dark-theme .mianxiang-tab {
    color: #B8B8B8;
    background: #1A1A1F;
}

body.dark-theme .mianxiang-tab.active {
    background: #3A3A40;
    color: #d4af37;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-theme .mianxiang-tab:hover:not(.active) {
    background: rgba(15, 163, 131, 0.2);
}

/* 选项卡内容样式 */
.mianxiang-tab-content {
    display: none;
}

.mianxiang-tab-content.active {
    display: block;
}

/* 描述文字样式 */
.mianxiang-personal-description,
.mianxiang-couple-description {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.4;
    font-style: italic;
}

/* 夫妻相模式选项样式 */
.couple-mode-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.mode-option {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex: 1;
    overflow: hidden;
    min-height: 50px;
    margin-bottom: 8px;
}

.mode-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #d4af37, #f5a623);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mode-option:hover {
    background: linear-gradient(135deg, #f0f1f3 0%, #f8f9fa 100%);
    border-color: #d4af37;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.mode-option:hover::before {
    transform: scaleY(1);
}

.mode-option-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.mode-option-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 1px 4px rgba(107, 114, 128, 0.2);
    transition: all 0.3s ease;
}

.mode-option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mode-option label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    margin: 0;
    display: block;
    letter-spacing: -0.1px;
}

.mode-option-desc {
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.3;
    font-weight: 400;
}

.mode-option:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(245, 166, 35, 0.05) 100%);
    border-color: #d4af37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.mode-option:has(input[type="radio"]:checked)::before {
    transform: scaleY(1);
}

.mode-option:has(input[type="radio"]:checked) .mode-option-icon {
    background: linear-gradient(135deg, #d4af37, #f5a623);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* 模式选项选中标记样式 */
.mode-option-check {
    display: none;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #d4af37;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: auto;
    flex-shrink: 0;
}

.mode-option:has(input[type="radio"]:checked) .mode-option-check {
    display: flex;
}

.mode-option-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.mode-option:has(input[type="radio"]:checked) label {
    color: #d4af37;
    text-shadow: 0 1px 2px rgba(212, 175, 55, 0.1);
}

.mode-option:has(input[type="radio"]:checked) .mode-option-desc {
    color: #f5a623;
}

/* 暗色主题模式选项样式 */
body.dark-theme .mode-option {
    background: linear-gradient(135deg, #1A1A1F 0%, #25252B 100%);
    border-color: #3A3A40;
}

body.dark-theme .mode-option:hover {
    background: linear-gradient(135deg, #25252B 0%, #3A3A40 100%);
    border-color: #d4af37;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
}

body.dark-theme .mode-option label {
    color: #e0e0e0;
}

body.dark-theme .mode-option-desc {
    color: #a0a0b0;
}

body.dark-theme .mode-option:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(245, 166, 35, 0.08) 100%);
    border-color: #d4af37;
}

body.dark-theme .mode-option:has(input[type="radio"]:checked) label {
    color: #d4af37;
}

body.dark-theme .mode-option:has(input[type="radio"]:checked) .mode-option-desc {
    color: #f5a623;
}

body.dark-theme .mianxiang-personal-description,
body.dark-theme .mianxiang-couple-description {
    color: #a0a0b0;
}

/* 面相按钮样式 */
.mianxiang-actions {
    margin-top: 2px;
}

.mianxiang-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #007AFF 0%, #0056CC 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
    width: 100%;
}

.mianxiang-btn:hover {
    background: linear-gradient(135deg, #0066CC 0%, #004499 100%);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
    transform: translateY(-1px);
}

.mianxiang-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
}

/* 暗色主题样式 */
body.dark-theme .mianxiang-btn {
    background: linear-gradient(135deg, #007AFF 0%, #0056CC 100%);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

body.dark-theme .mianxiang-btn:hover {
    background: linear-gradient(135deg, #0066CC 0%, #004499 100%);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

body.dark-theme .mianxiang-btn:active {
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
}

/* 分隔线样式 */
.mianxiang-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    margin: 15px 0;
}



body.dark-theme .mianxiang-divider {
    background: linear-gradient(to right, transparent, #444, transparent);
}

/* 暗色主题控制区域文字颜色 */
body.dark-theme .mianxiang-control {
    color: #e0e0e0;
}

/* 响应式设计 - 小屏幕垂直排列 */
@media (max-width: 480px) {
    .couple-mode-options {
        flex-direction: column;
    }
}