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

:root {
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-muted: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-soft: #e2e8f0;
    --border-strong: #cbd5e1;
    --brand: #2563eb;
    --brand-hover: #1d4ed8;
    --brand-soft: rgba(37, 99, 235, 0.1);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#navbar-container {
    min-height: 72px;
}

@media (max-width: 767px) {
    #navbar-container {
        min-height: 120px;
    }
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
    body {
        overflow-x: hidden;
    }
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

::selection {
    background-color: var(--brand-soft);
}

select {
    padding: 10px 36px 10px 14px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background-color: #fff;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

@media (max-width: 767px) {
    select {
        font-size: 16px;
        min-height: 48px;
    }
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border-soft);
    padding: 0 16px;
    backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
    .navbar {
        padding: 0 24px;
    }
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

@media (max-width: 767px) {
    .navbar-inner {
        height: auto;
        padding: 16px 0;
        flex-wrap: wrap;
        gap: 16px;
    }
}

.navbar-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

@media (max-width: 767px) {
    .navbar-logo {
        order: 1;
    }
}

.navbar-logo:hover {
    text-decoration: none;
    color: var(--brand);
}

.navbar-search {
    flex: 1;
    max-width: 400px;
    display: block;
}

@media (max-width: 767px) {
    .navbar-search {
        order: 3;
        width: 100%;
        flex: none;
        max-width: none;
        margin-top: 12px;
    }
}

.navbar-search input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    font-size: 14px;
    background-color: var(--bg-page);
    color: var(--text-primary);
}

.navbar-search input:focus {
    outline: none;
    border-color: var(--brand);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.navbar-search input::placeholder {
    color: var(--text-muted);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 767px) {
    .navbar-links {
        order: 2;
        margin-left: auto;
        flex-shrink: 1;
        min-width: 0;
    }

    .navbar-links>a,
    .navbar-dropdown-toggle {
        padding: 6px 8px;
        font-size: 13px;
    }
}

.navbar-links a {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.navbar-links a:hover {
    background-color: var(--bg-muted);
    color: var(--text-primary);
    text-decoration: none;
}

.navbar-links a.active {
    color: var(--brand);
    background-color: var(--brand-soft);
}

.navbar-dropdown {
    position: relative;
}

.navbar-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border: none;
}

.navbar-dropdown-toggle:hover {
    background-color: var(--bg-muted);
    color: var(--text-primary);
}

.navbar-dropdown-toggle::after {
    content: '';
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.2s;
}

.navbar-dropdown.active .navbar-dropdown-toggle::after {
    transform: rotate(-135deg);
}

.navbar-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.1);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 100;
    pointer-events: none;
}

.navbar-dropdown.active .navbar-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.navbar-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: 8px;
    font-weight: 500;
}

.navbar-dropdown-menu a:hover {
    background-color: var(--bg-muted);
    color: var(--text-primary);
    text-decoration: none;
}

@media (max-width: 767px) {
    .navbar-dropdown {
        position: static;
    }

    .navbar-dropdown-menu {
        position: fixed;
        top: 56px;
        right: 16px;
        left: auto;
        min-width: 160px;
    }

    .navbar-dropdown.active .navbar-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .container {
        padding: 0 28px;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
}

.hero {
    text-align: center;
    padding: 48px 0 32px;
}

@media (min-width: 768px) {
    .hero {
        padding: 56px 0 40px;
    }
}

.hero h1 {
    font-size: 34px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 46px;
    }
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
}

.hero-trust {
    font-size: 14px !important;
    color: var(--text-muted) !important;
    margin-top: 16px !important;
}

.section {
    padding: 24px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 48px 0;
    }
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 640px) {
    .tools-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (min-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 22px;
    }
}

.tool-card {
    display: block;
    padding: 24px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 100%;
    min-height: 164px;
    box-shadow: var(--shadow-sm);
}

.tool-card:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.tool-card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.tool-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
}

.tool-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

.tool-card-featured {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.tool-card-featured:hover {
    border-color: var(--brand);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.featured-badge {
    font-size: 14px;
    margin-left: 4px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

.category-card {
    display: block;
    padding: 24px;
    background-color: var(--bg-surface);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 100%;
    min-height: 100px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.category-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (min-width: 768px) {
    .collections-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

.collection-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    background-color: var(--bg-surface);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}

.collection-card:hover {
    border-color: var(--brand);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-4px);
    text-decoration: none;
}

.collection-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.collection-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 8px;
}

.collection-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.footer {
    background-color: #eff6ff;
    border-top: 1px solid #dbeafe;
    padding: 36px 0;
    margin-top: 56px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--brand);
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-secondary);
}

.tool-page {
    padding: 40px 0;
}

@media (min-width: 768px) {
    .tool-page {
        padding: 48px 0;
    }
}

.tool-header {
    text-align: center;
    margin-bottom: 36px;
}

.tool-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .tool-header h1 {
        font-size: 32px;
    }
}

.tool-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

.tool-page-content {
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.tool-container {
    width: 100%;
}

.tool-box {
    background-color: var(--bg-surface);
    border-radius: 18px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 767px) {
    .tool-box {
        padding: 24px;
        margin-bottom: 24px;
    }
}

.tool-input-group {
    margin-bottom: 16px;
}

.tool-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tool-input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    font-size: 16px;
    background-color: var(--bg-surface);
    color: var(--text-primary);
}

.tool-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.tool-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background-color: var(--bg-surface);
    color: var(--text-primary);
    resize: vertical;
}

.tool-textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.tool-select {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    font-size: 16px;
    background-color: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
}

.tool-select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.tool-btn-primary {
    background-color: var(--brand);
    color: var(--bg-surface);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.tool-btn-primary:hover {
    background-color: var(--brand-hover);
    transform: translateY(-1px);
}

.tool-btn-secondary {
    background-color: var(--bg-muted);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
}

.tool-btn-secondary:hover {
    background-color: #e2e8f0;
}

.tool-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tool-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tool-btn-group .tool-btn {
    flex: 1;
    min-width: 120px;
}

.tool-output {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    color: var(--text-primary);
    min-height: 48px;
    cursor: pointer;
    position: relative;
}

.tool-output:hover {
    border-color: #bfdbfe;
}

.tool-output-code {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-all;
}

.tool-output-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.tool-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.tool-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.tool-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
    cursor: pointer;
}

.tool-checkbox span {
    font-size: 14px;
    color: var(--text-primary);
}

.tool-range {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tool-range input[type="range"] {
    flex: 1;
    height: 6px;
    background-color: var(--border-soft);
    border-radius: 3px;
    appearance: none;
    cursor: pointer;
}

.tool-range input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background-color: var(--brand);
    border-radius: 50%;
    cursor: pointer;
}

.tool-range-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 40px;
    text-align: right;
}

.tool-result {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.tool-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
}

.tool-result-row:last-child {
    border-bottom: none;
}

.tool-result-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.tool-result-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.related-tools {
    margin-top: 32px;
    margin-bottom: 48px;
    padding: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
}

@media (min-width: 768px) {
    .related-tools {
        padding: 40px;
        margin-bottom: 56px;
    }
}

.related-tools h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
}

@media (min-width: 768px) {
    .related-tools h2 {
        font-size: 20px;
        margin-bottom: 24px;
    }
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .related-tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

.related-tool-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: var(--bg-muted);
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    min-height: 80px;
}

.related-tool-card:hover {
    background-color: var(--bg-surface);
    border-color: var(--border-soft);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transform: translateY(-2px);
}

.related-tool-card .tool-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.related-tool-card .tool-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 767px) {
    .related-tools {
        margin-bottom: 32px;
        padding: 24px;
    }

    .related-tools h2 {
        font-size: 17px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .related-tool-card {
        padding: 16px;
        min-height: 70px;
    }

    .related-tool-card .tool-name {
        font-size: 14px;
    }

    .related-tool-card .tool-desc {
        font-size: 12px;
    }
}

.related-tool-card:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.related-tool-card span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--text-primary);
    color: var(--bg-surface);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-secondary {
    color: var(--text-secondary);
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    margin-top: 4px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid var(--border-soft);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* 左右分栏布局优化 */
.tool-layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

@media (min-width: 1400px) {
    .tool-layout-sidebar {
        gap: 40px;
    }
}

@media (max-width: 1023px) {
    .tool-layout-sidebar {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.tool-sidebar-left {
    background-color: var(--bg-surface);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-soft);
}

.tool-sidebar-right {
    background-color: var(--bg-surface);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-soft);
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

@media (max-width: 1023px) {
    .tool-sidebar-right {
        position: static;
        max-height: none;
        top: auto;
    }
}

@media (max-width: 767px) {

    .tool-sidebar-left,
    .tool-sidebar-right {
        padding: 24px;
    }
}

/* 模板选择器优化 */
.template-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 767px) {
    .template-selector {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.template-btn {
    padding: 20px;
    background-color: var(--bg-surface);
    border: 2px solid var(--border-soft);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    height: 100%;
}

.template-btn:hover {
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.template-btn.active {
    border-color: var(--brand);
    background-color: var(--brand-soft);
}

.template-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.template-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.template-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* 表单区域优化 */
.form-section {
    margin-bottom: 32px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.section-header {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 767px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* 预览区域优化 */
.preview-container {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 32px;
    min-height: 800px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 1023px) {
    .preview-container {
        min-height: 600px;
    }
}

@media (max-width: 767px) {
    .preview-container {
        padding: 24px;
        min-height: 500px;
    }
}

.preview-actions {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .preview-actions {
        gap: 12px;
    }
}

/* 移动端优化 */
@media (max-width: 767px) {
    .tool-header h1 {
        font-size: 24px;
    }

    .tool-header p {
        font-size: 15px;
    }

    .tool-input-group {
        margin-bottom: 20px;
    }

    .tool-input,
    .tool-textarea {
        font-size: 16px;
    }

    .tool-btn {
        min-height: 52px;
        font-size: 16px;
        flex: 1;
        min-width: 140px;
    }

    .tool-btn-group {
        flex-direction: column;
    }

    .seo-content {
        padding: 12px !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
        margin-bottom: 16px !important;
    }

    .seo-content p {
        margin-bottom: 8px !important;
    }

    .seo-content p:last-child {
        margin-top: 8px !important;
    }
}

.search-result-item:hover {
    background-color: var(--bg-muted);
    text-decoration: none;
}

.search-result-icon {
    font-size: 24px;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.search-result-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.search-result-empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.seo-content-wrapper {
    width: 100%;
    margin-top: 64px;
}

@media (min-width: 768px) {
    .seo-content-wrapper {
        margin-top: 80px;
    }
}

.seo-section {
    margin-bottom: 48px;
    padding: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
}

@media (min-width: 768px) {
    .seo-section {
        padding: 40px;
        margin-bottom: 56px;
    }
}

.seo-section:last-child {
    margin-bottom: 0;
}

.seo-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
}

@media (min-width: 768px) {
    .seo-section h2 {
        font-size: 20px;
        margin-bottom: 24px;
    }
}

.seo-section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

.seo-section p:last-child {
    margin-bottom: 0;
}

.tool-tagline {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin-bottom: 16px !important;
}

.seo-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.seo-section li {
    margin-bottom: 0;
}

.use-cases-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.use-cases-list li {
    position: relative;
    padding: 12px 16px 12px 32px;
    margin-bottom: 8px !important;
    background: var(--bg-muted);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.use-cases-list li:last-child {
    margin-bottom: 0 !important;
}

.use-cases-list li::before {
    content: "•";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand);
    font-size: 18px;
    font-weight: bold;
}

.steps-list {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.steps-list li {
    position: relative;
    padding: 16px 20px 16px 56px;
    margin-bottom: 8px;
    background: var(--bg-muted);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    counter-increment: step-counter;
}

.steps-list li:last-child {
    margin-bottom: 0;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--brand);
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .steps-list li {
        padding: 14px 16px 14px 52px;
        font-size: 14px;
    }

    .steps-list li::before {
        width: 26px;
        height: 26px;
        font-size: 12px;
        left: 14px;
    }
}

.faq-list {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
}

.faq-item.active {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-surface);
    transition: background-color 0.2s ease;
    user-select: none;
}

.faq-question:hover {
    background: var(--bg-muted);
}

.faq-item.active .faq-question {
    background: var(--bg-muted);
}

.faq-question span:first-child {
    flex: 1;
}

.faq-icon {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--brand);
}

.faq-answer {
    display: none;
    padding: 0 20px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.faq-item.active .faq-answer {
    display: block;
}

@media (max-width: 767px) {
    .seo-section {
        margin-bottom: 32px;
        padding: 24px;
    }

    .seo-section h2 {
        font-size: 17px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .seo-section p {
        font-size: 14px;
        line-height: 1.7;
    }

    .faq-question {
        padding: 16px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 0 16px 16px;
        font-size: 13px;
        line-height: 1.7;
    }
}

.info-page {
    padding-top: 0;
}

.info-page-hero {
    padding: 64px 0 48px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-soft);
}

@media (min-width: 768px) {
    .info-page-hero {
        padding: 80px 0 64px;
    }
}

.info-page-hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .info-page-hero h1 {
        font-size: 40px;
    }
}

.info-page-hero p {
    font-size: 16px;
    color: var(--text-secondary);
}

.info-page-hero .last-updated {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 400;
}

@media (min-width: 768px) {
    .info-page-hero p {
        font-size: 18px;
    }

    .info-page-hero .last-updated {
        font-size: 14px;
        margin-top: 10px;
    }
}

.info-page-content {
    padding: 48px 0 80px;
}

@media (min-width: 768px) {
    .info-page-content {
        padding: 64px 0 100px;
    }
}

.info-page-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.info-page-text,
.info-page-list {
    max-width: 720px;
}

@media (min-width: 768px) {
    .info-page-card {
        padding: 40px;
        margin-bottom: 32px;
    }
}

.info-page-card:last-child {
    margin-bottom: 0;
}

.info-page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .info-page-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

.info-page-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
}

.info-page-text:last-child {
    margin-bottom: 0;
}

.info-page-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-page-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-page-list li:last-child {
    margin-bottom: 0;
}

.info-page-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--brand);
    border-radius: 50%;
}

.info-page-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}

.info-page-link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .info-page-hero {
        padding: 48px 0 32px;
    }

    .info-page-hero h1 {
        font-size: 26px;
    }

    .info-page-hero p {
        font-size: 15px;
    }

    .info-page-hero .last-updated {
        font-size: 12px;
        margin-top: 6px;
    }

    .info-page-content {
        padding: 32px 0 64px;
    }

    .info-page-card {
        padding: 24px;
        margin-bottom: 20px;
    }

    .info-page-title {
        font-size: 17px;
        margin-bottom: 14px;
    }

    .info-page-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .info-page-list li {
        font-size: 14px;
        padding-left: 20px;
    }

    .info-page-list li::before {
        width: 5px;
        height: 5px;
        top: 7px;
    }
}

.related-guides {
    margin-top: 48px;
    margin-bottom: 0;
}

.related-guides h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.related-guides-intro {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.related-guides-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.related-guide-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
    text-decoration: none;
    transition: background-color 0.15s;
}

.related-guide-item:last-child {
    border-bottom: none;
}

.related-guide-item:hover {
    text-decoration: none;
}

.related-guide-item:hover .related-guide-title {
    color: var(--brand);
}

.related-guide-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-size: 14px;
    margin-top: 2px;
}

.related-guide-content {
    flex: 1;
    min-width: 0;
}

.related-guide-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
    transition: color 0.15s;
}

.related-guide-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 767px) {
    .related-guides {
        margin-bottom: 0;
    }

    .related-guides h2 {
        font-size: 17px;
    }

    .related-guides-intro {
        font-size: 13px;
    }

    .related-guide-item {
        padding: 12px 0;
    }

    .related-guide-title {
        font-size: 14px;
    }

    .related-guide-desc {
        font-size: 12px;
    }
}