/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #fef7f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.de_iv_adv {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
    /* background-color: #F8F8F8; */
    margin: 70px 0 0px;
}

/* 底部广告位 */
.postionFixed {
    width: 100%;
    min-height: 60px;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F8F8F8;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 9999;
}
/* Navigation */
.navbar {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon {
    font-size: 1rem;
    display: inline-block;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 90px 0 20px;
    border-bottom: 1px solid #fed7aa;
}

.breadcrumb a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 0.5rem;
    color: #4a5568;
}

/* Tool Header */
.tool-header {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #fed7aa;
}

.tool-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.tool-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tool-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-info h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.tool-info p {
    color: #4a5568;
    font-size: 1.1rem;
}

.tool-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.btn-secondary:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
}

/* Tool Content */
.tool-content {
    padding: 40px 0;
    background: #fef7f0;
}

.tool-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.tool-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tool-panel {
    background: white;
    border-radius: 12px;
    border: 1px solid #fed7aa;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.panel-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-weight: 600;
    font-size: 1.1rem;
}

.panel-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.panel-content {
    padding: 1.5rem;
}

#input-area,
#output-area {
    width: 100%;
    min-height: 300px;
    border: 2px solid #fed7aa;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#input-area:focus,
#output-area:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

#output-area {
    background: #f7fafc;
    color: #2d3748;
}

.tool-options {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #fed7aa;
}

.output-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #2f855a;
}

/* Sidebar */
.tool-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #fed7aa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-section h3 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.sidebar-section ul {
    list-style: none;
    padding-left: 0;
}

.sidebar-section ul li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.sidebar-section ul li::before {
    content: '•';
    color: #ff6b35;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.related-tools {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-tool {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fef7f0;
    border-radius: 8px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.3s ease;
    border: 1px solid #fed7aa;
}

.related-tool:hover {
    background: #ff6b35;
    color: white;
    transform: translateX(5px);
}

.related-tool-icon {
    font-size: 1.5rem;
}

.related-tool-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.related-tool-info p {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2d3748;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ff6b35;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b35;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.social-links a:hover {
    color: white;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.social-icon {
    font-size: 1.2rem;
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    color: #cbd5e0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
}

.footer-legal-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-legal-links a:hover {
    color: #ff6b35;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tool-layout {
        grid-template-columns: 1fr;
    }

    .tool-sidebar {
        order: -1;
    }

    .sidebar-section {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
        width: 100vw;
        height: 100vh;
        text-align: center;
        transition: left 0.3s ease-in-out;
        box-shadow: none;
        padding: 0;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon {
    font-size: 1rem;
    display: inline-block;
}

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

    .nav-toggle {
        display: flex;
        z-index: 10000;
        position: relative;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-toggle .bar {
        transition: all 0.3s ease;
    }

    .tool-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .tool-info {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .tool-actions {
        width: 100%;
        justify-content: center;
    }

    .panel-header {
        padding: 0.75rem 1rem;
    }

    .panel-content {
        padding: 1rem;
    }

    #input-area,
    #output-area {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-legal-links {
        gap: 1rem;
    }
}

    .breadcrumb {
        padding: 80px 0 15px;
    }

    .tool-header {
        padding: 20px 0;
    }

    .tool-info h1 {
        font-size: 1.5rem;
    }

    .tool-info p {
        font-size: 1rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .tool-content {
        padding: 30px 0;
    }

    .panel-content {
        padding: 0.75rem;
    }

    #input-area,
    #output-area {
        min-height: 200px;
        font-size: 0.8rem;
    }

    .sidebar-section {
        padding: 1rem;
    }

    .toast {
        bottom: 15px;
        right: 15px;
        left: 15px;
        padding: 0.75rem 1rem;
    }
}
