:root {
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --secondary-color: #2ecc71;
    --secondary-hover: #27ae60;
    --danger-color: #e74c3c;
    --danger-hover: #c0392b;
    --text-color: #333;
    --light-text: #666;
    --border-color: #ddd;
    --bg-color: #f5f5f5;
    --card-bg: white;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    position: relative;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 20px;
    background-color: rgba(52, 152, 219, 0.1);
}

.back-button:hover {
    background-color: rgba(52, 152, 219, 0.2);
    transform: translateX(-3px);
}

.back-button i {
    margin-right: 5px;
}

h1 {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
    margin-top: 20px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s;
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
}

button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(52, 152, 219, 0.3);
}

button i {
    margin-right: 8px;
}

.result {
    margin-top: 30px;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: #f9f9f9;
    border-left: 4px solid var(--border-color);
    display: none;
}

.success {
    color: var(--secondary-color);
}

.error {
    color: var(--danger-color);
}

.info-card {
    margin-top: 20px;
    border-radius: var(--border-radius);
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.info-item {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: var(--border-radius);
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.info-content {
    display: flex;
    align-items: flex-start;
    flex: 1;
}

.info-label {
    font-weight: bold;
    margin-right: 15px;
    color: var(--light-text);
    min-width: 100px;
}

.info-value {
    flex: 1;
    word-break: break-word;
    line-height: 1.5;
}

.copy-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 15px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.2);
}

.copy-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.copy-success {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(46, 204, 113, 0.2);
}

.site-icon {
    max-width: 48px;
    max-height: 48px;
    vertical-align: middle;
    margin-right: 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 2px;
    background-color: white;
}

.icon-container {
    display: flex;
    align-items: center;
    flex: 1;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.result-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
}

.result-header h3 i {
    margin-right: 8px;
}

.result-url {
    color: var(--light-text);
    font-size: 14px;
    word-break: break-all;
}

.loading {
    display: none;
    text-align: center;
    margin: 30px 0;
}

.loading-spinner {
    border: 4px solid rgba(52, 152, 219, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tools-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    width: 100%;
    height: 120px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary-color);
}

.tool-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tool-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color);
}

.tool-description {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.tool-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 14px;
    margin-top: auto;
}

.tool-link:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.footer {
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    color: var(--light-text);
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.6rem;
        margin-top: 30px;
    }
    
    .back-button {
        position: static;
        margin-bottom: 20px;
        display: inline-flex;
    }
    
    .info-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-label {
        margin-bottom: 5px;
    }
    
    .info-item {
        flex-direction: column;
    }
    
    .copy-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-url {
        margin-top: 10px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}