body {
    background: linear-gradient(120deg, #f8fafc 0%, #e2e8f0 100%);
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    line-height: 1.6;
}

.container {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.12);
    padding: 40px 32px 32px 32px;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #22223b;
    letter-spacing: 1px;
}

h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    color: #374151;
    text-align: center;
}

h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.5rem 0;
    color: #4b5563;
}

.subtitle {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Breadcrumb styles */
.breadcrumb {
    margin-bottom: 2rem;
    text-align: left;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: #9ca3af;
}

.breadcrumb a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #4f46e5;
}

.breadcrumb li[aria-current="page"] {
    color: #6b7280;
    font-weight: 500;
}

/* Generator section */
.generator-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.generator-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    color: #2d3748;
    font-weight: 500;
}

input[type="number"] {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
    margin-bottom: 0.2rem;
}

input[type="number"]:focus {
    border: 1.5px solid #6366f1;
}

small {
    color: #6b7280;
    font-size: 0.85rem;
}

button {
    background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 2.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99,102,241,0.08);
    transition: background 0.2s, transform 0.1s;
    margin-bottom: 1.2rem;
}

button:hover {
    background: linear-gradient(90deg, #4f46e5 0%, #2563eb 100%);
    transform: translateY(-2px) scale(1.03);
}

.result {
    margin-top: 1.2rem;
    font-size: 1.2rem;
    color: #22223b;
    letter-spacing: 2px;
    word-break: break-all;
    min-height: 2.5rem;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 1rem 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Features section */
.features-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #fefefe;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

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

.feature {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature h3 {
    margin-top: 0;
    color: #3730a3;
}

.feature p {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Use cases section */
.use-cases-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #fefefe;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.use-cases-list {
    text-align: left;
    max-width: 600px;
    margin: 1.5rem auto 0 auto;
    padding-left: 1.5rem;
}

.use-cases-list li {
    margin-bottom: 0.8rem;
    color: #4b5563;
    line-height: 1.6;
}

.use-cases-list strong {
    color: #3730a3;
}

/* FAQ section */
.faq-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #fefefe;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.faq-item {
    text-align: left;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #6366f1;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h3 {
    margin-top: 0;
    color: #3730a3;
    font-size: 1.1rem;
}

.faq-item p {
    margin: 0.5rem 0 0 0;
    color: #6b7280;
    line-height: 1.6;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0 0.5rem 0;
    border-radius: 0 0 12px 12px;
    margin-bottom: 0;
}

.nav-link {
    color: #3730a3;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.08rem;
    padding: 0.4rem 1.1rem;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s;
}

.nav-link:hover {
    background: #e0e7ff;
    color: #1e293b;
}

.nav-link[aria-current="page"] {
    background: #6366f1;
    color: #fff;
}

.share-section {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 1.05rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.share-section h3 {
    margin-top: 0;
    color: #374151;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.share-btn {
    display: inline-block;
    margin: 0 0.3rem;
    color: #2563eb;
    background: #f1f5f9;
    border-radius: 5px;
    padding: 0.3rem 1.1rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.18s, color 0.18s;
    font-size: 0.9rem;
}

.share-btn:hover {
    background: #dbeafe;
    color: #1e293b;
}

.footer-links {
    margin-top: 2rem;
    text-align: center;
}

.footer-links a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #4f46e5;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 20px;
        max-width: none;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .navbar {
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        margin: 0.2rem 0;
        width: 200px;
        text-align: center;
    }
    
    .generator-section,
    .features-section,
    .use-cases-section,
    .faq-section,
    .share-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 120px;
    }
    
    .navbar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .container {
        margin: 0.5rem;
        padding: 15px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
.nav-link:focus,
.share-btn:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .container {
        border: 2px solid #000;
    }
    
    .feature,
    .faq-item {
        border: 2px solid #000;
    }
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

/* Critical rendering path optimizations */
.container {
    contain: layout style paint;
}

/* Reduce layout shifts */
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Optimize animations for performance */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles for better accessibility */
@media print {
    .navbar, .share-section, .footer-links {
        display: none;
    }
    
    .container {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Bookmark/收藏按钮样式 */
.bookmark-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #6366f1 0%, #60a5fa 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bookmark-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
}

.bookmark-btn.bookmarked {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.bookmark-btn.bookmarked:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.bookmark-btn:active {
    transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .bookmark-btn {
        top: 15px;
        right: 15px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* 收藏成功提示 */
.bookmark-toast {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1001;
    background: #10b981;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    font-size: 14px;
    font-weight: 500;
}

.bookmark-toast.show {
    transform: translateX(0);
}

.bookmark-toast.success {
    background: #10b981;
}

.bookmark-toast.error {
    background: #ef4444;
}

@media (max-width: 768px) {
    .bookmark-toast {
        top: 80px;
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Additional styles for menu page and enhanced elements */
.tools-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #fefefe;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

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

.tool-card {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tool-card h3 {
    margin-top: 0;
    color: #3730a3;
}

.tool-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.tool-card h3 a:hover {
    color: #6366f1;
}

.tool-card p {
    color: #6b7280;
    margin: 0.5rem 0 1rem 0;
    line-height: 1.5;
}

.tool-card ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #4b5563;
}

.tool-card li {
    margin-bottom: 0.3rem;
}

.features-overview {
    margin: 3rem 0;
    padding: 2rem;
    background: #fefefe;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.use-case {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}

.use-case:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.use-case h3 {
    margin-top: 0;
    color: #3730a3;
}

.use-case p {
    color: #6b7280;
    margin: 0.5rem 0 0 0;
    line-height: 1.5;
}

.quick-links {
    margin: 3rem 0;
    padding: 2rem;
    background: #fefefe;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

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

.quick-link {
    display: block;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #3730a3;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
}

.quick-link:hover {
    background: #e0e7ff;
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.checkbox-group {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.strength-guide {
    margin: 3rem 0;
    padding: 2rem;
    background: #fefefe;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.strength-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.strength-level {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.strength-level h3 {
    margin-top: 0;
    font-size: 1rem;
}

.strength-level p {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.security-tips {
    margin: 3rem 0;
    padding: 2rem;
    background: #fefefe;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.tips-list {
    text-align: left;
    max-width: 600px;
    margin: 1.5rem auto 0 auto;
    padding-left: 1.5rem;
}

.tips-list li {
    margin-bottom: 0.8rem;
    color: #4b5563;
    line-height: 1.6;
}

.tips-list strong {
    color: #3730a3;
}

.technical-note {
    margin: 3rem 0;
    padding: 2rem;
    background: #fefefe;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.note-content {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.note-content p {
    margin: 0;
    color: #92400e;
    line-height: 1.6;
}

fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    margin: 0;
}

legend {
    font-weight: 600;
    color: #374151;
    padding: 0 0.5rem;
} 