/* 工具页面样式 */
.tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.tools-container h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.tools-container .intro {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tool-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-card h2 {
    margin-bottom: 0.5rem;
    color: #333;
}

.tool-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background: #666;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
}

/* 工具面板 */
.tool-panel {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

/* 结果框 */
.result-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem auto;
}

/* 八字结果 */
.bazi-chart {
    text-align: center;
    margin-bottom: 1.5rem;
}

.bazi-stem {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: #667eea;
}

.luck-score {
    text-align: center;
    margin-bottom: 1.5rem;
}

.aspects {
    margin-top: 1.5rem;
}

.aspect {
    margin-bottom: 1rem;
}

.aspect span {
    font-weight: bold;
    display: inline-block;
    width: 60px;
}

.progress-bar {
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    display: inline-block;
    width: calc(100% - 100px);
    vertical-align: middle;
    margin: 0 10px;
}

.progress-bar div {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
}

.aspect small {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* 心理测评 */
.question {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.question p {
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.question label {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.good { color: #4CAF50; font-weight: bold; }
.normal { color: #2196F3; }
.warning { color: #FF9800; font-weight: bold; }

/* 智商测试 */
.iq-question {
    text-align: center;
    padding: 2rem;
}

.iq-pattern {
    font-size: 2rem;
    margin: 1.5rem 0;
    letter-spacing: 0.5rem;
}

.iq-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.iq-options label {
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.iq-options label:hover {
    border-color: #667eea;
}

.iq-options input {
    display: none;
}

.option {
    font-size: 1.5rem;
}

/* 生命数字 */
.life-number {
    font-size: 4rem;
    font-weight: bold;
    color: #667eea;
    text-align: center;
    margin: 1rem 0;
}

/* 禅语 */
.zen-quote {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.zen-quote p {
    font-size: 1.5rem;
    font-style: italic;
}

/* 冥想计时器 */
.timer-display {
    font-size: 4rem;
    font-weight: bold;
    text-align: center;
    margin: 2rem 0;
    color: #667eea;
    font-family: monospace;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    margin-top: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* API Results Styling */
.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #666;
}

.error {
    color: #f44336;
    text-align: center;
    padding: 1rem;
}

.bazi-result-inner {
    padding: 1rem 0;
}

/* 八字盘 */
.bazi-chart {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border-radius: 12px;
}

.bazi-pillar {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 80px;
}

.bazi-pillar span {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.bazi-pillar strong {
    display: block;
    font-size: 1.5rem;
    color: #667eea;
}

.bazi-pillar small {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.25rem;
}

/* 五行 */
.wuxing-chart {
    margin-bottom: 2rem;
}

.wuxing-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.wuxing-item span {
    width: 40px;
    font-weight: bold;
}

.wuxing-item .progress {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 10px;
}

.wuxing-item .progress div {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.5s;
}

.wuxing-item small {
    width: 30px;
    text-align: right;
    color: #666;
}

.missing {
    color: #ff9800;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
    background: #fff3e0;
    border-radius: 8px;
}

/* 运势 */
.luck-score {
    text-align: center;
    margin-bottom: 2rem;
}

.score-circle.large {
    width: 120px;
    height: 120px;
    font-size: 2.5rem;
}

.aspects {
    margin-bottom: 2rem;
}

.aspect {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.aspect span {
    width: 50px;
    font-weight: bold;
}

.progress-bar {
    flex: 1;
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 10px;
}

.progress-bar div {
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s;
}

.aspect small {
    width: 45px;
    text-align: right;
    font-weight: bold;
    color: #666;
}

/* 建议 */
.advice-box {
    padding: 1.5rem;
    background: #e8f5e9;
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
}

.advice-box h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

.advice-box p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* 生命数字 */
.numerology-result {
    padding: 1rem 0;
}

.life-numbers {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.life-num {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    min-width: 100px;
}

.life-num span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
}

.life-num strong {
    display: block;
    font-size: 2.5rem;
    margin-top: 0.5rem;
}

.description {
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.careers {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fff3e0;
    border-radius: 8px;
}

.careers h4 {
    color: #e65100;
    margin-bottom: 0.5rem;
}

.traits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.strategies, .challenges {
    padding: 1rem;
    border-radius: 8px;
}

.strategies {
    background: #e8f5e9;
}

.strategies h4 {
    color: #2e7d32;
}

.challenges {
    background: #fff3e0;
}

.challenges h4 {
    color: #e65100;
}

.strategies ul, .challenges ul {
    list-style: none;
    padding: 0;
}

.strategies li, .challenges li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.good { color: #4CAF50; font-weight: bold; }
.normal { color: #2196F3; }
.warning { color: #FF9800; font-weight: bold; }

@media (max-width: 600px) {
    .life-numbers {
        flex-direction: column;
    }
    .traits {
        grid-template-columns: 1fr;
    }
}
