* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 70px;
}

body.menu-open {
    overflow: hidden;
}

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

.breadcrumb {
    padding: 1rem 0;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #666;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #764ba2;
}

.breadcrumb span {
    color: #333;
}

.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    white-space: nowrap;
}

.nav-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    margin-left: 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.nav-wrapper::-webkit-scrollbar {
    height: 6px;
}

.nav-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.nav-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.nav-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0;
    margin: 0;
    min-width: max-content;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-links a:hover {
    opacity: 0.8;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 20px;
    z-index: 1001;
    touch-action: manipulation;
}

.menu-toggle span {
    width: 30px;
    height: 4px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    list-style: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    overflow-y: auto;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav li {
    width: 100%;
    text-align: center;
    margin: 0.5rem 0;
}

.mobile-nav a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    white-space: normal;
    color: white;
    text-decoration: none;
}

main {
    flex: 1;
    padding: 2rem 0;
}

footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: #333;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #667eea;
}

.tool-card p {
    color: #666;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        -webkit-tap-highlight-color: transparent;
    }
    
    .nav-wrapper {
        display: none;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}
