* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #f4f7ff 0%, #ffffff 70%);
    min-height: 100vh;
    color: #1f2937;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: none;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.methods-container {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.method-card {
    background: transparent;
    border-radius: 15px;
    padding: 30px;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.method-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.method-header p {
    color: #6b7280;
    margin-bottom: 25px;
    line-height: 1.5;
}

.input-section {
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #f9fafb;
}

.input-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.btn {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.25);
    text-decoration: none;
}

.btn:visited,
.btn:focus,
.btn:active {
    text-decoration: none;
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.result-section {
    background: transparent;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #28a745;
}

.result-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.email-item {
    background: rgba(248, 250, 252, 0.7);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-item i {
    color: #28a745;
    font-size: 1.2rem;
}

.noreply-item i {
    color: #ffc107;
}

.noreply-item {
    border-left: 4px solid #ffc107;
    background: rgba(255, 250, 235, 0.75);
}

.noreply-email {
    color: #856404;
    font-weight: 600;
}

.noreply-label {
    background: #ffc107;
    color: #856404;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.email-info {
    flex: 1;
}

.email-address {
    font-weight: 600;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
}

.email-source {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 2px;
}

.commit-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

.commit-hash {
    font-family: 'Courier New', monospace;
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
}

.loading {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error i {
    font-size: 1.2rem;
}

.no-results {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-style: italic;
}

.stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e8ed;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .methods-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .method-card {
        padding: 20px;
    }
    
    .stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}
