/* 宿曜功能样式 */

/* 宿曜控制区域 */
.xiuyao-control {
    margin: 10px 0;
    padding: 0;
}

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

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

.xiuyao-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;
}

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

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

/* 选项卡内容样式 */
.xiuyao-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 表单组样式 */
.xiuyao-form .form-group {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.xiuyao-form .form-group:last-child {
    margin-bottom: 0;
}

.xiuyao-form .form-group label {
    font-weight: 500;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 0;
    white-space: nowrap;
    min-width: 60px;
}

/* 日期输入容器样式 */
.date-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.date-input-container .date-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 44px;
    box-sizing: border-box;
    cursor: pointer;
}

.date-input-container .date-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.date-input-container .date-input-icon {
    position: absolute;
    right: 12px;
    font-size: 1.1rem;
    pointer-events: none;
}

/* 宿曜按钮样式 */
.xiuyao-actions {
    margin-top: 8px;
}

/* 宿曜描述文字样式 */
.xiuyao-personal-description,
.xiuyao-compatibility-description {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    padding: 0 8px;
}

body.dark-theme .xiuyao-personal-description,
body.dark-theme .xiuyao-compatibility-description {
    color: #ccc;
}

.xiuyao-btn {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #786962;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    background: linear-gradient(135deg, #786962 0%, #675a54 100%);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(120, 105, 98, 0.2);
}

.xiuyao-btn:hover {
    background: linear-gradient(135deg, #675a54 0%, #564b46 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(120, 105, 98, 0.3);
}

.xiuyao-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(120, 105, 98, 0.2);
}

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

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

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

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

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

body.dark-theme .date-input-container .date-input {
    background: #2a2a3a;
    border-color: #4a4659;
    color: #ffffff;
}

body.dark-theme .date-input-container .date-input:focus {
    border-color: #2ea18e;
    box-shadow: 0 0 0 3px rgba(46, 161, 142, 0.2);
}

body.dark-theme .xiuyao-btn {
    border: 1px solid #ab968c;
    background: linear-gradient(135deg, #ab968c 0%, #9a8576 100%);
    box-shadow: 0 2px 4px rgba(171, 150, 140, 0.3);
}

body.dark-theme .xiuyao-btn:hover {
    background: linear-gradient(135deg, #9a8576 0%, #897466 100%);
    box-shadow: 0 4px 8px rgba(171, 150, 140, 0.4);
}

body.dark-theme .xiuyao-btn:active {
    box-shadow: 0 1px 2px rgba(171, 150, 140, 0.3);
}

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

/* 响应式调整 */
@media (max-width: 480px) {
    .xiuyao-tab {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .date-input-container .date-input {
        padding: 10px 12px;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .xiuyao-btn {
        padding: 10px 24px;
        font-size: 0.85rem;
    }
}