* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #ffffff;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background-color: transparent;
    min-height: 90vh;
    margin-top: 0;
    margin-bottom: 0;
}

h1 {
    text-align: left;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

h1 span {
    flex: 1;
}

.question-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 30px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    justify-content: center;
    align-items: flex-start;
}

.select-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 220px;
    max-width: 320px;
    flex: 1;
}

.select-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.3px;
}

select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    font-weight: 400;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

select:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

select option {
    padding: 12px;
    background-color: #ffffff;
    color: #495057;
    font-size: 14px;
    white-space: normal;
    word-wrap: break-word;
    min-height: 20px;
}

select option:hover {
    background-color: #f8f9fa;
}

/* 方法展示区域样式 */
.methods-container {
    margin-top: 20px;
    padding: 30px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.method-category {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.method-category h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    text-transform: none;
}

.method-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.method-item {
    padding: 12px 18px;
    background: linear-gradient(145deg, #e3f2fd, #bbdefb);
    border-radius: 10px;
    color: #0d47a1;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
    cursor: pointer;
    border: 1px solid rgba(13, 71, 161, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.method-item:hover {
    background: linear-gradient(145deg, #bbdefb, #90caf9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #0d47a1;
}

.method-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.method-item.recommended {
    background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    font-weight: 600;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
    border: 2px solid #4caf50;
}

#restart-btn {
    display: inline-block;
    margin: 0;
    padding: 14px 28px;
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

#restart-btn:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(145deg, #5a6fd8, #6a4190);
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .question-container {
        justify-content: flex-start;
    }
    
    .select-wrapper {
        min-width: 200px;
        max-width: 280px;
    }
}

@media (max-width: 1200px) {
    .question-container {
        justify-content: flex-start;
    }
    
    .select-wrapper {
        min-width: 180px;
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
        margin-top: 2vh;
        margin-bottom: 2vh;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    h1 span {
        flex: none;
    }
    
    #restart-btn {
        position: static;
        transform: none;
        align-self: flex-end;
    }
    
    .question-container {
        flex-direction: column;
        padding: 20px;
        gap: 12px;
    }
    
    .select-wrapper {
        width: 100%;
        max-width: none;
    }
    
    .methods-container {
        padding: 20px;
    }
    
    .method-group {
        flex-direction: column;
    }
    
    .method-item {
        width: 100%;
    }
}

/* 底部链接样式 */
.footer-links {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.footer-link {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-link:hover {
    color: #666;
}

/* Contact邮箱弹窗样式 */
.contact-modal {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-text {
    font-size: 14px;
    color: #333;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.copy-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* 复制成功提示 */
.copy-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.copy-success.show {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 - 底部链接 */
@media (max-width: 768px) {
    .footer-links {
        bottom: 15px;
        right: 15px;
        gap: 12px;
    }
    
    .contact-modal {
        bottom: 50px;
        right: 15px;
        padding: 10px 14px;
    }
} 