/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header h1 i {
    color: #6c5ce7;
}

.subtitle {
    font-size: 1.1rem;
    color: #636e72;
    font-weight: 400;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 输入区域样式 */
.input-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.input-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.input-wrapper input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    font-size: 1rem;
    border: 2px solid #dfe6e9;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: 'Inter', monospace;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.input-wrapper input::placeholder {
    color: #b2bec3;
}

.icon-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #636e72;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.icon-btn:hover {
    color: #2d3436;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.primary-btn {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    flex: 1;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(108, 92, 231, 0.3);
}

.secondary-btn {
    background: #f1f2f6;
    color: #2d3436;
    flex: 1;
}

.secondary-btn:hover {
    background: #dfe4ea;
}

/* 结果区域样式 */
.result-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #b2bec3;
    text-align: center;
}

.result-placeholder i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #dfe6e9;
}

.result-placeholder p {
    font-size: 1.1rem;
    max-width: 400px;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.result-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3436;
}

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

.icon-btn.small {
    background: #f1f2f6;
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
}

.icon-btn.small:hover {
    background: #dfe4ea;
}

.url-display {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #dfe6e9;
    overflow-x: auto;
}

.url-display code {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #2d3436;
    word-break: break-all;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #dfe6e9;
}

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

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

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3436;
}

/* 信息区域样式 */
.info-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.info-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.info-icon i {
    font-size: 1.8rem;
    color: white;
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 15px;
}

.info-card p {
    color: #636e72;
    line-height: 1.7;
}

/* 页脚样式 */
.footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px 20px;
    color: #636e72;
    font-size: 0.9rem;
}

.footer-note {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #e17055;
}

/* 通知样式 */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2d3436;
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* 工具类 */
.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .input-section,
    .result-card,
    .info-card {
        padding: 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 12px 20px;
    }
}