.tool-fullwidth {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Tool shell */
.query-tool {
    max-width: 100%;
    margin: 0 auto;
}

.query-tool.editor-section,
.editor-section.query-tool {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.query-tool .card:not(.result-card) {
    border: 1px solid var(--color-border, #e5e7eb);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
    border-radius: var(--radius, 12px);
    background: var(--color-surface, #fff);
}

.query-tool .card-body {
    padding: 1.25rem 1.35rem;
}

.query-tool .card-title {
    color: var(--color-text, #1f2937);
    font-weight: 700;
    font-size: 1.05rem;
}

.query-tool .form-control,
.query-tool .form-select,
.query-tool .select-input,
.query-tool textarea {
    border-radius: 8px;
    border: 1px solid var(--color-border, #e5e7eb);
}

.query-tool .form-control:focus,
.query-tool .form-select:focus,
.query-tool textarea:focus {
    border-color: var(--color-primary, #0d9488);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.query-tool .btn-primary {
    background: var(--color-primary, #0d9488);
    border-color: var(--color-primary, #0d9488);
}

.query-tool .btn-primary:hover {
    background: var(--color-primary-hover, #0f766e);
    border-color: var(--color-primary-hover, #0f766e);
}

.query-tool .alert {
    border-radius: 10px;
}

[data-theme="dark"] .query-tool .card:not(.result-card) {
    background: var(--color-surface, #1f2937);
    border-color: var(--color-border, #374151);
}

[data-theme="dark"] .query-tool .card-title,
[data-theme="dark"] .query-tool .form-label,
[data-theme="dark"] .query-tool {
    color: var(--color-text, #f9fafb);
}

[data-theme="dark"] .query-tool .text-muted,
[data-theme="dark"] .query-tool .form-text {
    color: var(--color-text-secondary, #9ca3af) !important;
}

[data-theme="dark"] .query-tool .form-control,
[data-theme="dark"] .query-tool .form-select,
[data-theme="dark"] .query-tool textarea {
    background: #111827;
    color: var(--color-text, #f9fafb);
    border-color: var(--color-border, #374151);
}

/* --- tool: valentines-day-countdown --- */
/* 情人节倒计时计算器样式 */
.valentine-countdown-container {
    min-height: auto;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

/* 爱心动画背景 */
.hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    color: rgba(255, 182, 193, 0.6);
    font-size: 20px;
    animation: float 6s ease-in-out infinite;
}

.heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.heart:nth-child(2) { left: 20%; animation-delay: 1s; }
.heart:nth-child(3) { left: 30%; animation-delay: 2s; }
.heart:nth-child(4) { left: 40%; animation-delay: 3s; }
.heart:nth-child(5) { left: 50%; animation-delay: 4s; }
.heart:nth-child(6) { left: 60%; animation-delay: 5s; }
.heart:nth-child(7) { left: 70%; animation-delay: 0.5s; }
.heart:nth-child(8) { left: 80%; animation-delay: 1.5s; }
.heart:nth-child(9) { left: 90%; animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* 主要内容区域 */
.valentine-content {
    position: relative;
    z-index: 2;
}

/* 页面标题样式 */
.valentine-header {
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

.valentine-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.valentine-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e, #ffa8a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.valentine-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 倒计时卡片样式 */
.countdown-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 182, 193, 0.3);
}

.countdown-display {
    text-align: center;
}

.countdown-title {
    font-size: 2rem;
    color: #e91e63;
    margin-bottom: 2rem;
    font-weight: bold;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.time-unit {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    min-width: 100px;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    transition: transform 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-5px);
}

.time-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}

.time-label {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.valentine-message {
    font-size: 1.3rem;
    color: #e91e63;
    font-weight: 500;
    margin-top: 1rem;
}

/* 设置卡片样式 */
.settings-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 182, 193, 0.3);
}

.settings-title {
    color: #e91e63;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-label {
    color: #e91e63;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #ffb6c1;
    border-radius: 10px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #e91e63;
    box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.25);
}

.form-text {
    color: #666;
    font-size: 0.9rem;
}

/* 按钮样式 */
.btn-valentine {
    background: linear-gradient(135deg, #e91e63, #ff6b6b);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}

.btn-valentine:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.6);
    color: white;
}

.btn-secondary-valentine {
    background: linear-gradient(135deg, #ffb6c1, #ffc0cb);
    border: none;
    color: #e91e63;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.4);
}

.btn-secondary-valentine:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 182, 193, 0.6);
    color: #e91e63;
}

/* 提示框样式 */
.alert-info {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border: 2px solid #ffb6c1;
    border-radius: 15px;
    color: #e91e63;
}

/* 祝福弹窗样式 */
.valentine-blessing {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #fff, #fce4ec);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.3);
    text-align: center;
    z-index: 1000;
    display: none;
    border: 3px solid #e91e63;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.05); }
    70% { transform: translate(-50%, -50%) scale(0.9); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .valentine-title {
        font-size: 2rem;
    }
    
    .countdown-timer {
        gap: 1rem;
    }
    
    .time-unit {
        min-width: 80px;
        padding: 1rem 0.5rem;
    }
    
    .time-number {
        font-size: 2rem;
    }
    
    .valentine-blessing {
        margin: 1rem;
        padding: 2rem;
    }
}

/* 特殊效果 */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.sparkle {
    position: relative;
}

.sparkle::before {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.2rem;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}
