/* 小红书日期格式转换器样式 */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* 转换器卡片 */
.converter-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
}

/* 输入区域 */
.input-section h3 {
    color: #374151;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
    margin-top: 0;
}

h3 {
    margin-top: 0;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #ff6b6b;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.input-hint {
    display: block;
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 6px;
    line-height: 1.4;
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff5252, #ff7979);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* 结果区域 */
.result-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.result-section h3 {
    color: #374151;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.result-card {
    background: linear-gradient(135deg, #fff5f5, #fef2f2);
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 25px;
}

.result-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.result-label {
    color: #374151;
    font-weight: 600;
    font-size: 1.1rem;
}

.result-value {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.8rem;
    font-weight: 600;
    color: #dc2626;
    border: 2px solid #fecaca;
    flex: 1;
    text-align: center;
    letter-spacing: 2px;
}

.copy-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.result-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.detail-value {
    color: #374151;
    font-weight: 600;
}

/* 示例区域 */
.examples-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
}

.examples-section h3 {
    color: #374151;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.example-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.example-input {
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    color: #374151;
    font-weight: 500;
}

.example-arrow {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.2rem;
}

.example-output {
    background: #fef2f2;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* 说明区域 */
.info-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
}

.info-section h3 {
    color: #374151;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.info-item h4 {
    color: #ff6b6b;
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.info-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-item li {
    padding: 8px 0;
    color: #374151;
    position: relative;
    padding-left: 20px;
}

.info-item li::before {
    content: "•";
    color: #ff6b6b;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 页脚 */
.footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.footer-content p {
    color: #6b7280;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff5252;
}

/* 加载状态 */
.loading .btn-primary {
    opacity: 0.7;
    cursor: not-allowed;
}

.loading .btn-primary svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 错误消息 */
.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    margin-top: 15px;
    display: none;
}

.error-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

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

/* 成功消息 */
.success-message {
    background: #f0fdf4;
    color: #16a34a;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
    margin-top: 15px;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .converter-card {
        padding: 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .result-display {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .example-item {
        text-align: center;
        gap: 10px;
        justify-content: space-between;
    }
    
    .info-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .result-value {
        font-size: 1.4rem;
        padding: 12px 15px;
    }
    
    .converter-card {
        padding: 15px;
    }
}