body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    color: #0f172a;
    white-space: normal;
    line-height: 1.6;
}

.container, .header-container, .main-container {
    max-width: 800px;
    margin: 0 auto;
    width: 800px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
    opacity: 1;
}

a {
    color: #059669;
    text-decoration: none;
    white-space: normal;
    font-weight: 500;
}

a:hover {
    color: #047857;
    text-decoration: underline;
}

.header-container {
    display: flex;
    justify-content: center;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.header-content {
    padding: 12px 0;
    text-align: center;
    width: 100%;
}

.logo-container {
    margin-bottom: 8px;
}

.logo {
    color: #0f172a;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-description {
    color: #64748b;
    margin: 4px 0 8px;
    font-size: 14px;
    white-space: pre-wrap;
}

.search-container {
    margin: 0 auto;
    max-width: 500px;
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-box {
    display: flex;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 15px;
    outline: none;
    color: #0f172a;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-button {
    background-color: #10b981;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #059669;
}

.search-button:disabled {
    background-color: #a7f3d0;
    cursor: not-allowed;
}

.search-button.loading {
    position: relative;
    padding-left: 40px;
}

.search-button.loading::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.search-tips {
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: pre-wrap;
    background-color: #fef2f2;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #fecaca;
}

.search-tips.error {
    opacity: 1;
}

.main-container {
    padding: 16px 0;
}

.section-title {
    text-align: center;
    color: #0f172a;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

.site-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    padding: 0;
    list-style: none;
}

.site-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    transition: border-color 0.2s, color 0.2s;
    display: block;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    font-size: 12px;
}

.site-item:hover {
    text-decoration: none;
    border-color: #10b981;
    color: #059669;
}

.site-info {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: left;
}

.site-info h3 {
    margin-top: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.site-detail {
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
    width: 100%;
    flex-wrap: nowrap;
    font-size: 14px;
}

.site-detail strong {
    width: 100px;
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
    padding-top: 2px;
}

.site-detail .site-content {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
    padding: 2px 0;
    color: #334155;
}

.tag-container {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    line-height: 1.8;
    display: inline-block;
    width: 100%;
    padding: 4px 0;
}

.tag-item {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 4px 12px;
    background-color: #ecfdf5;
    color: #059669;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.tag-item:hover {
    background-color: #10b981;
    color: #ffffff;
    text-decoration: none;
}

.tag-item::before {
    content: "#";
    margin-right: 3px;
    color: #6ee7b7;
}

.site-description {
    line-height: 1.6;
    margin-top: 16px;
    white-space: pre-wrap;
    color: #475569;
    font-size: 14px;
    padding: 16px;
    background-color: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #10b981;
}

.tag-cloud {
    text-align: center;
    padding: 24px 0;
}

.footer-container {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 800px;
    width: 100%;
    background-color: #0f172a;
    margin-top: 48px;
    box-sizing: border-box;
}

.footer-content {
    padding: 16px 16px;
    text-align: center;
    color: #94a3b8;
    width: 100%;
    white-space: normal;
}

.footer-links {
    margin-bottom: 8px;
}

.footer-link {
    color: #cbd5e1;
    margin: 0 12px;
    display: inline-block;
    margin-bottom: 4px;
    font-size: 13px;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-text {
    font-size: 12px;
    color: #64748b;
    padding: 8px 0;
    margin: 0;
    text-align: center;
}

#back-to-top {
    position: fixed;
    bottom: 24px;
    left: calc(50% + 400px);
    right: auto;
    background-color: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
}

#back-to-top:hover {
    background-color: #059669;
}

.tools-section {
    margin-bottom: 32px;
    padding: 24px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

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

.tool-item {
    background-color: #f8fafc;
    border-radius: 6px;
    padding: 16px 12px;
    text-align: center;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    display: block;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 500;
}

.tool-item:hover {
    text-decoration: none;
    background-color: #10b981;
    color: #ffffff;
    border-color: #059669;
}

.seo-tools-panel {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #e2e8f0;
}

.seo-tools-panel .tool-row {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.seo-tools-panel .tool-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.seo-tools-panel .tool-label {
    display: inline-block;
    color: #0f172a;
    font-weight: 600;
    margin-right: 12px;
    min-width: 80px;
    font-size: 14px;
}

.seo-tools-panel .tool-links {
    display: inline;
}

.seo-tools-panel .tool-link {
    display: inline-block;
    color: #059669;
    text-decoration: none;
    margin: 0 4px;
    padding: 6px 12px;
    background-color: #ffffff;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #e2e8f0;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.seo-tools-panel .tool-link:hover {
    background-color: #10b981;
    color: #ffffff;
    text-decoration: none;
    border-color: #059669;
}

.seo-tools-panel .seo-badge {
    display: inline-block;
    margin: 4px 6px;
    padding: 6px 14px;
    background-color: #fef3c7;
    border-radius: 4px;
    color: #d97706;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #fcd34d;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.seo-tools-panel .seo-badge:hover {
    background-color: #fcd34d;
    border-color: #fbbf24;
    color: #b45309;
}

.site-header-with-icon {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    position: relative;
}

.site-header-with-icon h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    flex: 1;
    padding-right: 80px;
    font-weight: 600;
}

.favicon-inline {
    position: absolute;
    right: 0;
    top: 0;
}

.favicon-square-rounded {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    cursor: pointer;
}

.favicon-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 12px;
    margin-bottom: 32px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    justify-items: center;
}

.favicon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 6px 4px;
    width: 100%;
    max-width: 64px;
}

.favicon-img-wrap {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    padding: 2px;
    transition: border-color 0.2s;
}

.favicon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.favicon-card:hover .favicon-img-wrap {
    border-color: #10b981;
}

.favicon-card:hover .favicon-domain {
    color: #059669;
}

.favicon-domain {
    font-size: 10px;
    color: #64748b;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    margin-top: 6px;
    transition: color 0.2s;
}

.info-with-screenshot {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.basic-info {
    flex: 1;
}

.stats-section {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.stats-list {
    flex: 1;
}

.screenshot-wrapper {
    flex-shrink: 0;
    width: 180px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    position: relative;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s, border-color 0.3s;
}

.screenshot-wrapper:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #10b981;
}

.site-screenshot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.screenshot-loading, .screenshot-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
}

.screenshot-loading::before {
    content: "🔄";
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
    animation: rotate 1.5s linear infinite;
}

.screenshot-fallback::before {
    content: "";
    margin-bottom: 0;
    display: none;
}

.screenshot-fallback.text-only::before {
    content: "📸";
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

h3 {
    text-align: center;
    margin: 0 auto;
    width: fit-content;
}

a.special-link {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    background-color: #10b981;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s;
}

a.special-link:hover {
    background-color: #059669;
    text-decoration: none;
}

.site-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.thumb-btn {
    background: #FD4F3D;
    color: #ffffff;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
    line-height: 1.4;
    transition: background-color 0.2s;
}

.thumb-btn:hover {
    background: #059669;
}

.thumb-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.thumb-icon {
    font-size: 14px;
}

.pin-message {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 500;
}

.pin-message.success {
    background: #d1fae5;
    color: #065f46;
}

.pin-message.error {
    background: #fee2e2;
    color: #991b1b;
}

.main-nav {
    background-color: #10b981;
    padding: 0;
    margin: 0 auto 10px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    width: 800px;
    border-radius: 16px;
    position: sticky;
    top: 0;
    z-index: 800;
    box-sizing: border-box;
}

.nav-content {
    width: 100%;
    margin: 0 auto;
    display: flex;
    padding: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
}

.nav-content::-webkit-scrollbar {
    display: none;
}

.nav-item {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.nav-item:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    margin: 5px 4px;
    padding: 5px 16px;
}

.nav-item.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    margin: 5px 4px;
    padding: 5px 16px;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px 2px 0 0;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 70%;
}

.category-layout {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.category-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: fit-content;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

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

.category-item {
    margin-bottom: 8px;
}

.category-item.active .category-link {
    background: #ecfdf5;
    color: #059669;
    border-left: 3px solid #10b981;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.category-link:hover {
    background: #f8fafc;
    color: #059669;
}

.cat-name {
    font-size: 14px;
}

.cat-count {
    font-size: 12px;
    color: #999;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}

.category-main {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.site-list.detailed .site-item-detailed {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.site-category {
    font-size: 12px;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 10px;
    border-radius: 12px;
    text-decoration: none;
    margin-left: auto;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.page-link:hover {
    border-color: #10b981;
    color: #059669;
}

.page-link.current {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.top-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    justify-content: center;
}

.top-tab {
    padding: 12px 30px;
    color: #555;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.top-tab:hover {
    background: #ecfdf5;
    color: #059669;
    border-color: #10b981;
}

.top-tab.active {
    background-color: #10b981;
    color: #fff;
    border-color: #10b981;
}

.top-list {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.top-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    gap: 15px;
}

.top-item:hover {
    background: #fafafa;
}

.top-rank {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rank-1 { background: #ffd700; color: #333; }
.rank-2 { background: #c0c0c0; color: #333; }
.rank-3 { background: #cd7f32; color: #fff; }
.rank-other { background: #f0f0f0; color: #666; }

.top-thumb {
    width: 90px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.top-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-info {
    flex: 1;
    min-width: 0;
}

.top-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.top-favicon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.top-domain {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.top-domain:hover {
    color: #059669;
}

.top-title {
    color: #666;
    font-size: 13px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #94a3b8;
}

.top-category {
    color: #059669;
    background: #ecfdf5;
    padding: 2px 10px;
    border-radius: 12px;
    text-decoration: none;
}

.top-stats {
    color: #999;
    font-size: 13px;
    flex-shrink: 0;
}

.audit-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #10b981;
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.audit-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.audit-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.audit-form .form-group {
    margin-bottom: 15px;
}

.audit-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
}

.form-input:focus,
.form-select:focus {
    border-color: #10b981;
    outline: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #10b981;
    color: #fff;
}

.btn-primary:hover {
    background-color: #059669;
}

.btn-secondary {
    background: #f0f0f0;
    color: #555;
    margin-right: 10px;
    margin-bottom: 5px;
}

.audit-list {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.audit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
}

.audit-domain {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audit-category {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    background: #ecfdf5;
    color: #059669;
}

.audit-category.pending {
    background: #fff2f0;
    color: #cf1322;
}

.audit-date {
    color: #999;
    font-size: 13px;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.alert-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
}

.random-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
}

.warning-box {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.warning-title {
    color: #cf1322;
    font-weight: bold;
    margin-bottom: 10px;
}

.mode-select {
    margin: 20px 0;
}

.mode-option {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.mode-option:hover {
    border-color: #10b981;
    background: #f8fafc;
}

.mode-option input {
    margin-right: 12px;
}

.mode-label {
    font-weight: 500;
    color: #333;
}

.mode-desc {
    color: #666;
    font-size: 14px;
    margin-top: 4px;
}

.confirm-box {
    margin: 20px 0;
    padding: 15px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 8px;
}

.progress-info {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.progress-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.category-simple-layout {
    display: flex;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.category-sidebar-simple {
    width: 220px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    height: fit-content;
}

.cat-stats-total {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.stats-num {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    line-height: 1;
}

.stats-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    margin-top: 4px;
}

.category-main-simple {
    flex: 1;
    min-width: 0;
}

.category-site-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.category-site-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.category-site-card:hover {
    border-color: #10b981;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.category-site-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}

.category-site-favicon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    object-fit: cover;
    flex-shrink: 0;
}

.category-site-info {
    flex: 1;
    min-width: 0;
}

.category-site-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-site-domain {
    font-size: 13px;
    color: #059669;
    font-weight: 500;
}

.category-site-body {
    padding: 16px;
    flex: 1;
}

.category-site-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.category-site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.category-site-time {
    font-size: 12px;
    color: #94a3b8;
}

.category-site-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: #10b981;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.category-site-link:hover {
    background: #059669;
    color: #fff;
    text-decoration: none;
}

.category-wide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-wide-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.category-wide-item:hover {
    border-color: #10b981;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.15);
}

.category-wide-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.category-wide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-wide-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.category-wide-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    overflow: hidden;
}

.category-wide-favicon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.category-wide-title-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.category-wide-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.category-wide-title a {
    color: #0f172a;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-wide-title a:hover {
    color: #059669;
    text-decoration: none;
}

.category-wide-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.category-wide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
}

.category-wide-domain {
    color: #059669;
    font-weight: 500;
}

.category-wide-domain:hover {
    color: #047857;
}

@media (max-width: 800px) {
    .main-nav {
        width: 100%;
        border-radius: 0;
    }
    
    .nav-content {
        width: 100%;
        padding: 0 16px;
    }
    
    .category-layout {
        grid-template-columns: 1fr;
    }
    
    .category-sidebar.left,
    .category-sidebar.right {
        order: 2;
    }
    
    .category-main {
        order: 1;
    }
    
    .audit-tools {
        grid-template-columns: 1fr;
    }
    
    .audit-stats {
        grid-template-columns: 1fr;
    }
    
    .nav-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        padding: 12px 15px;
        font-size: 14px;
    }

    .header-container,
    .main-container,
    .footer-container {
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .site-list {
        grid-template-columns: 1fr;
    }

    .site-detail strong {
        width: 80px;
    }

    .tag-container {
        line-height: 1.6;
    }
    
    .tag-item {
        padding: 4px 10px;
        font-size: 12px;
        margin: 0 4px 4px 0;
    }

    .site-header-with-icon {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .site-header-with-icon h3 {
        padding-right: 0;
        margin-bottom: 12px;
    }
    
    .favicon-inline {
        position: static;
        margin-bottom: 10px;
    }
    
    .favicon-square-rounded {
        width: 40px;
        height: 40px;
    }

    .info-with-screenshot {
        flex-direction: column;
        gap: 16px;
    }

    .stats-section {
        flex-direction: column;
        gap: 16px;
    }
    
    .screenshot-wrapper {
        width: 100%;
        max-width: 100%;
    }

    #back-to-top {
        left: auto;
        right: 16px;
    }
}

@media (max-width: 768px) {
    .tools-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-tools-panel .tool-links {
        display: block;
        margin-top: 10px;
    }
    
    .seo-tools-panel .tool-link {
        margin: 4px;
    }

    .favicon-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
        padding: 18px;
    }
    
    .favicon-card {
        max-width: 60px;
    }
    
    .favicon-img-wrap {
        width: 28px;
        height: 28px;
        padding: 2px;
    }
    
    .favicon-img {
        width: 24px;
        height: 24px;
    }
    
    .favicon-domain {
        font-size: 9px;
    }

    .category-wide-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .category-wide-thumb {
        width: 100%;
        height: 150px;
    }

    .top-tabs {
        flex-wrap: wrap;
    }
    
    .top-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .top-thumb {
        width: 70px;
        height: 52px;
    }
}

@media (max-width: 800px) {
    .category-simple-layout {
        flex-direction: column;
    }
    
    .category-sidebar-simple {
        width: 100%;
        order: 1;
    }
    
    .category-main-simple {
        order: 2;
    }
    
    .category-site-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .favicon-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 16px;
    }
    
    .favicon-card {
        max-width: 56px;
        padding: 5px 3px;
    }
    
    .favicon-img-wrap {
        width: 26px;
        height: 26px;
    }
    
    .favicon-img {
        width: 22px;
        height: 22px;
    }
    
    .favicon-domain {
        font-size: 9px;
        margin-top: 4px;
    }
}

@media (max-width: 480px) {
    .tools-list {
        grid-template-columns: 1fr;
    }
    
    .tool-item {
        padding: 12px;
        font-size: 13px;
    }

    .favicon-square-rounded {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 400px) {
    .favicon-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        padding: 10px;
    }
    
    .favicon-card {
        max-width: 52px;
    }
    
    .favicon-img-wrap {
        width: 24px;
        height: 24px;
    }
    
    .favicon-img {
        width: 20px;
        height: 20px;
    }
}
@media (max-width: 800px) {
    .main-nav {
        width: 100%;
        border-radius: 0;
    }
    
    .nav-content {
        width: 100%;
        padding: 0 16px;
    }
    
    .header-container,
    .main-container,
    .footer-container {
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .site-list {
        grid-template-columns: 1fr;
    }

    .site-detail strong {
        width: 80px;
    }

    .tag-container {
        line-height: 1.6;
    }
    
    .tag-item {
        padding: 4px 10px;
        font-size: 12px;
        margin: 0 4px 4px 0;
    }

    .site-header-with-icon {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .site-header-with-icon h3 {
        padding-right: 0;
        margin-bottom: 12px;
    }
    
    .favicon-inline {
        position: static;
        margin-bottom: 10px;
    }
    
    .favicon-square-rounded {
        width: 40px;
        height: 40px;
    }

    .info-with-screenshot {
        flex-direction: column;
        gap: 16px;
    }

    .stats-section {
        flex-direction: column;
        gap: 16px;
    }
    
    .screenshot-wrapper {
        width: 100%;
        max-width: 100%;
    }

    #back-to-top {
        left: auto;
        right: 16px;
    }
}

@media (max-width: 768px) {
    .tools-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-tools-panel .tool-links {
        display: block;
        margin-top: 10px;
    }
    
    .seo-tools-panel .tool-link {
        margin: 4px;
    }

    .favicon-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
        padding: 18px;
    }
    
    .favicon-card {
        max-width: 60px;
    }
    
    .favicon-img-wrap {
        width: 28px;
        height: 28px;
        padding: 2px;
    }
    
    .favicon-img {
        width: 24px;
        height: 24px;
    }
    
    .favicon-domain {
        font-size: 9px;
    }

    .category-wide-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .category-wide-thumb {
        width: 100%;
        height: 150px;
    }

    .top-tabs {
        flex-wrap: wrap;
    }
    
    .top-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .top-thumb {
        width: 70px;
        height: 52px;
    }
}

@media (max-width: 800px) {
    .category-simple-layout {
        flex-direction: column;
    }
    
    .category-sidebar-simple {
        width: 100%;
        order: 1;
    }
    
    .category-main-simple {
        order: 2;
    }
    
    .category-site-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .favicon-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 16px;
    }
    
    .favicon-card {
        max-width: 56px;
        padding: 5px 3px;
    }
    
    .favicon-img-wrap {
        width: 26px;
        height: 26px;
    }
    
    .favicon-img {
        width: 22px;
        height: 22px;
    }
    
    .favicon-domain {
        font-size: 9px;
        margin-top: 4px;
    }
}

@media (max-width: 480px) {
    .tools-list {
        grid-template-columns: 1fr;
    }
    
    .tool-item {
        padding: 12px;
        font-size: 13px;
    }

    .favicon-square-rounded {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 400px) {
    .favicon-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        padding: 10px;
    }
    
    .favicon-card {
        max-width: 52px;
    }
    
    .favicon-img-wrap {
        width: 24px;
        height: 24px;
    }
    
    .favicon-img {
        width: 20px;
        height: 20px;
    }
}
