* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav ul li a:hover {
    opacity: 0.8;
}

.login-btn {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
}

.hero {
    text-align: center;
    padding: 60px 0;
    background-color: white;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.hero p {
    font-size: 18px;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto 30px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

.tools-section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 28px;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.tool-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding: 25px 20px;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.tool-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.tool-card p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
}

.tool-card a {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    transition: opacity 0.3s;
}

.tool-card a:hover {
    opacity: 0.9;
}

.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.category-btn {
    padding: 8px 20px;
    margin: 0 10px 10px 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover, .category-btn.active {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-color: transparent;
}

.about-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.contact-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.submit-btn:hover {
    opacity: 0.9;
}

footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 14px;
}

.loading {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: #7f8c8d;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 20px;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}
.tool-container {
    padding: 40px 0;
}

.tool-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.upload-area {
    border: 2px dashed #ddd;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #6a11cb;
}

.upload-area button {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 15px;
}

.preview-area {
    display: flex;
    margin-top: 30px;
    gap: 30px;
}

.image-preview {
    flex: 1;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 4px;
}

.image-preview img {
    max-width: 100%;
    display: block;
}

.controls {
    flex: 0 0 300px;
}

.controls select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.color-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #eee;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.color-btn.blue { background: #3a7afe; }
.color-btn.white { background: #ffffff; }
.color-btn.red { background: #f44336; }

.color-btn.custom input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.result-area {
    text-align: center;
    margin-top: 30px;
}

.result-image {
    max-width: 500px;
    margin: 20px auto;
    border: 1px solid #eee;
    padding: 10px;
}

.result-image img {
    max-width: 100%;
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.download-options button {
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#downloadBtn {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

#newPhotoBtn {
    background: #f5f5f5;
    color: #333;
}
.file-info {
    margin-top: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.file-info p {
    margin: 5px 0;
    font-size: 14px;
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
}

.control-group input[type="range"] {
    width: 100%;
}
.input-area {
    margin-bottom: 30px;
}

.input-area textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 16px;
}

.qr-code-container {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
}

.qr-code-container img {
    max-width: 100%;
    max-height: 400px;
}

.toggle-btn {
    background: none;
    border: none;
    color: #6a11cb;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 5px;
}

.advanced-options {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}
.tool-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 15px;
    transition: all 0.3s;
}

.tool-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.tool-link[href$=".html"]:not([href*="id-photo"]):not([href*="compress"]):not([href*="qrcode"]:not([href*="to-cartoon"]) {
    background: #cccccc;
    cursor: not-allowed;
}
.tool-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 15px;
    transition: all 0.3s;
}

.tool-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.no-tools {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
    color: #666;
}
.download-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.download-btn {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
    background: #f5f5f5;
    color: #333;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
}

.size-comparison {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.size-comparison div {
    text-align: center;
    padding: 8px;
}
.translation-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.swap-btn {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.swap-btn:hover {
    background-color: #f0f0f0;
}

.text-areas {
    display: flex;
    gap: 20px;
}

.text-areas textarea {
    flex: 1;
    min-height: 200px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    font-size: 16px;
}

.translation-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.auto-translate {
    display: flex;
    align-items: center;
    gap: 5px;
}
.result-text textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    font-size: 16px;
}
select {
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
}
.tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.primary-btn {
    background-color: #3a7afe;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.primary-btn:hover {
    background-color: #2a5fd8;
}

.secondary-btn {
    background-color: #f0f0f0;
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
}

.secondary-btn:hover {
    background-color: #e0e0e0;
}

.download-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.download-btn:hover {
    background-color: #3e8e41;
}

.hidden {
    display: none !important;
}
.tool-link.upcoming {
    background-color: #ff9800; /* 橙色表示即将上线 */
    cursor: not-allowed;
}