/* Tool-specific styles (global reset handled by yst-theme.css) */
.container {
    max-width: 100%;
    padding: 0;
    position: relative;
    z-index: 1;
    font-family: 'ZCOOL QingKe HuangYou', 'Ma Shan Zheng', sans-serif;
}

/* 主要内容区域 */
.main-content {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

/* 输入区域 */
.input-section {
    margin-bottom: 30px;
}

.input-container {
    position: relative;
    margin-bottom: 20px;
}

#messageInput {
    width: 100%;
    min-height: 120px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 1.1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: #fff;
}

#messageInput:focus {
    outline: none;
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.char-count {
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: #999;
    font-size: 0.9rem;
}

.analyze-btn {
    width: 100%;
    padding: 18px 35px;
    background: linear-gradient(45deg, #ff6b6b, #ff9a9e, #fbc2eb);
    color: white;
    border: none;
    border-radius: 60px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.analyze-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4);
    background: linear-gradient(45deg, #ff5252, #ff7b7b, #ffb8e4);
}

.analyze-btn:active {
    transform: translateY(-1px);
}

/* 结果区域 */
.result-section {
    margin-bottom: 30px;
}

.loading {
    text-align: center;
    padding: 40px;
    display: none;
}

.error-message {
    text-align: center;
    padding: 20px;
}

.result-card .original-message {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    border-left: 4px solid #8b0000;
    color: #8b0000;
}

.result-card .analysis-result {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #8b0000;
    font-size: 1.1rem;
}

.result-card .advice {
    padding: 15px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    border: 2px dashed rgba(139, 0, 0, 0.3);
    color: #8b0000;
    font-weight: 500;
}

.result-card strong {
    color: #8b0000;
    font-weight: 600;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.result-card {
    background: linear-gradient(135deg, 
        rgba(255, 182, 193, 0.95) 0%, 
        rgba(255, 209, 220, 0.95) 50%, 
        rgba(255, 235, 240, 0.95) 100%
    );
    border-radius: 20px;
    padding: 30px;
    color: #8b0000;
    box-shadow: 0 8px 24px rgba(255, 105, 180, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.result-emoji {
    font-size: 2rem;
}

.result-content {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.result-footer {
    display: flex;
    gap: 10px;
}

.copy-btn, .share-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.3);
    color: #8b0000;
    border: 1px solid rgba(139, 0, 0, 0.2);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.share-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #f5576c;
}

.share-btn:hover {
    background: white;
    transform: translateY(-2px);
}

/* 示例区域 */
.examples-section {
    margin-top: 30px;
}

.examples-section h3 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.example-card {
    background: rgba(255, 107, 107, 0.06);
    border: 2px solid rgba(255, 107, 107, 0.15);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-card:hover {
    background: rgba(255, 107, 107, 0.12);
    border-color: #ff6b6b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.15);
}

.example-card p {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.example-hint {
    font-size: 0.8rem;
    color: #ff6b6b;
}

/* 浮动元素 - 隐藏 */
.floating-elements {
    display: none;
}

/* 动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .title {
        font-size: 2.5rem;
    }
    .main-content {
        padding: 20px;
    }
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .result-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .main-logo {
        width: 80px;
        height: 80px;
    }
    .title {
        font-size: 2rem;
    }
    .examples-grid {
        grid-template-columns: 1fr;
    }
}
