/* ============================================
   Default Theme Stylesheet
   Complete CSS for Online Tool Station
   ============================================ */

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #4f46e5;
    color: #ffffff;
    padding: 8px 16px;
    z-index: 1000;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Header ===== */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

header h1 a {
    color: #111827;
    transition: color 0.3s ease;
}

header h1 a:hover {
    color: #4f46e5;
}

.header-tagline {
    font-size: 0.875rem;
    color: #4b5563;
    font-weight: 400;
}

.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header-nav a {
    color: #1f2937;
    font-weight: 500;
    font-size: 0.9375rem;
    position: relative;
    padding: 0.5rem 0;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.header-nav a:hover {
    color: #4f46e5;
}

.header-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #1f2937;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search-form {
    max-width: 700px;
    margin: 0 auto;
}

.hero-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.hero-search-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.hero-search-input:focus {
    outline: none;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.hero-search-input::placeholder {
    color: #9ca3af;
}

.hero-search-button {
    position: absolute;
    right: 0.5rem;
    background: #667eea;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.3s ease, transform 0.2s ease;
}

.hero-search-button:hover {
    background: #5568d3;
    transform: scale(1.05);
}

/* ===== Featured Tools Section ===== */
.featured-tools-section {
    background: white;
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #111827;
    text-align: left;
}

.featured-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 1.5rem;
}

.featured-tool-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.featured-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
}

.featured-tool-icon-wrapper {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    flex-shrink: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: padding-box;
}

.featured-tool-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.featured-tool-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}

.featured-tool-icon svg {
    width: 36px;
    height: 36px;
    stroke: currentColor;
    fill: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.featured-tool-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tool-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.tool-card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.4;
}

.featured-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(251,191,36,0.3);
}

.tool-card-description {
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.tool-category-badge {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    background: #f3f4f6;
    color: #374151;
}

.tool-category-encrypt {
    background: #fee2e2;
    color: #991b1b;
}

.tool-category-encode {
    background: #fef3c7;
    color: #92400e;
}

.tool-category-format {
    background: #dbeafe;
    color: #1e40af;
}

.tool-category-convert {
    background: #e9d5ff;
    color: #6b21a8;
}

.tool-category-design {
    background: #fce7f3;
    color: #9f1239;
}

.tool-category-generate {
    background: #d1fae5;
    color: #065f46;
}

.tool-category-text {
    background: #dbeafe;
    color: #1e40af;
}

.tool-category-editor {
    background: #f3f4f6;
    color: #374151;
}

.tool-category-test {
    background: #d1fae5;
    color: #065f46;
}

.tool-category-network {
    background: #cffafe;
    color: #164e63;
}

.tool-category-image {
    background: #e9d5ff;
    color: #6b21a8;
}

.tool-card-link {
    color: #4f46e5;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.featured-tool-card:hover .tool-card-link {
    color: #4338ca;
}

/* ===== Latest Articles Section ===== */
.latest-articles-section {
    background: #f9fafb;
    padding: 4rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-link {
    color: #4f46e5;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.section-link:hover {
    color: #4338ca;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.article-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.article-card h3 a {
    color: #111827;
    transition: color 0.3s ease;
}

.article-card h3 a:hover {
    color: #4f46e5;
}

.article-excerpt {
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.read-more {
    color: #4f46e5;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #4338ca;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

/* ===== Categories Section ===== */
.categories-section {
    background: white;
    padding: 4rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
}

.category-icon-wrapper {
    width: 48px;
    min-width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    /* 背景由内联样式动态设置 */
    background-clip: padding-box;
}

.category-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.category-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}

.category-icon svg {
    width: 18px;
    height: 18px;
    stroke: white !important;
    fill: none !important;
    color: white !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.category-icon svg * {
    stroke: white !important;
    fill: none !important;
    color: white !important;
}

.category-icon svg path[fill],
.category-icon svg circle[fill],
.category-icon svg rect[fill] {
    fill: white !important;
    stroke: none !important;
}

.category-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.category-description {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.category-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.category-count {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
}

.category-link {
    color: #4f46e5;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #4338ca;
}

/* ===== Why Choose Section ===== */
.why-choose-section {
    background: #f9fafb;
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111827;
}

.feature-item p {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===== All Tools Section ===== */
.all-tools-section {
    background: white;
    padding: 4rem 0;
}

.tool-category-section {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #111827;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 1.5rem;
}

.enhanced-tool-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.enhanced-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
}

.tool-card-link-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.tool-card-icon-wrapper {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    flex-shrink: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tool-card-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.tool-card-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}

.tool-card-icon svg {
    width: 36px;
    height: 36px;
    stroke: currentColor;
    fill: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.tool-card-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tool-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.tool-card-top h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.4;
}

.featured-badge-small {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(251,191,36,0.3);
}

.tool-card-desc {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tool-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.tool-card-action {
    color: #4f46e5;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.enhanced-tool-card:hover .tool-card-action {
    color: #4338ca;
}

.tools-count-info {
    text-align: center;
    padding: 2rem 0;
    color: #6b7280;
    font-size: 0.9375rem;
}

.tools-count-info strong {
    color: #111827;
    font-weight: 600;
}

/* ===== Footer ===== */
footer {
    background: #111827;
    color: #d1d5db;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column p {
    color: #9ca3af;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #9ca3af;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* ===== Contact Page ===== */
.contact-page {
    max-width: 800px;
    margin: 2rem auto;
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.contact-card h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.contact-intro {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-actions {
    margin-top: 2rem;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

.contact-other {
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.contact-other h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.contact-other p {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.contact-other a {
    color: #4f46e5;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-other a:hover {
    color: #4338ca;
}

/* ===== Search Page ===== */
.search-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.search-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #111827;
}

.search-form {
    margin-bottom: 1.5rem;
}

.search-box {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.search-box input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.search-box button {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

.search-filters {
    display: flex;
    gap: 1.5rem;
}

.search-filters label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #4b5563;
    font-size: 0.9375rem;
}

.search-results {
    margin-top: 2rem;
}

.results-count {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.results-count strong {
    color: #111827;
    font-weight: 600;
}

.results-section {
    margin-bottom: 3rem;
}

.results-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

/* ===== Articles Page ===== */
.articles-header {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.articles-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111827;
}

.articles-list {
    margin-top: 2rem;
}

.article-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.article-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.article-item h3 a {
    color: #111827;
    transition: color 0.3s ease;
}

.article-item h3 a:hover {
    color: #667eea;
}

/* ===== 404 Page ===== */
.error-404 {
    text-align: center;
    padding: 4rem 2rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-404 h1 {
    font-size: 6rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    color: #111827;
}

.error-404 h2 {
    font-size: 2rem;
    margin: 1rem 0;
    color: #111827;
}

.error-404 p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: #6b7280;
}

.error-404 .actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.error-404 .btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.error-404 .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

.error-404 .btn-secondary {
    background: #6b7280;
    box-shadow: 0 4px 12px rgba(107,114,128,0.3);
}

.error-404 .btn-secondary:hover {
    background: #4b5563;
    box-shadow: 0 6px 20px rgba(107,114,128,0.4);
}

/* ===== Ads Container ===== */
.ads-container {
    text-align: center;
    padding: 1rem;
    margin: 1rem 0;
}

.ads-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.ads-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.ads-content-top,
.ads-content-bottom {
    background: #f9fafb;
    padding: 1.5rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .featured-tools-grid,
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .featured-tools-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-tool-card,
    .enhanced-tool-card {
        flex-direction: column;
    }
    
    .featured-tool-icon-wrapper,
    .tool-card-icon-wrapper {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 2rem;
    }
    
    .featured-tool-icon,
    .tool-card-icon {
        width: 80px;
        height: 80px;
    }
    
    .featured-tool-icon svg,
    .tool-card-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        flex-direction: column !important;
    }
    
    .category-icon-wrapper {
        margin-bottom: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    header .container {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    header h1 {
        font-size: 1.25rem;
    }
    
    .header-tagline {
        font-size: 0.75rem;
    }
    
    .hero-section {
        padding: 2.5rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .featured-tools-section,
    .latest-articles-section,
    .categories-section,
    .why-choose-section,
    .all-tools-section {
        padding: 2.5rem 0;
    }
    
    .error-404 h1 {
        font-size: 4rem;
    }
    
    .error-404 h2 {
        font-size: 1.5rem;
    }
}

/* ===== Force Layout Fix - 强制左右布局，确保图标在左，内容在右 ===== */
.featured-tool-card,
article.enhanced-tool-card,
article.tool-card.enhanced-tool-card,
.enhanced-tool-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
}

.featured-tool-icon-wrapper,
.tool-card-icon-wrapper {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    flex-shrink: 0 !important;
    display: flex !important;
}

.tool-card-link-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
}

/* 最高优先级强制布局规则 - 必须放在文件最后 */
a.featured-tool-card,
.featured-tool-card,
a.enhanced-tool-card,
article.enhanced-tool-card,
article.tool-card.enhanced-tool-card,
.enhanced-tool-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
}

a.featured-tool-card .featured-tool-icon-wrapper,
.featured-tool-card .featured-tool-icon-wrapper,
a.enhanced-tool-card .tool-card-icon-wrapper,
article.enhanced-tool-card .tool-card-icon-wrapper,
article.tool-card.enhanced-tool-card .tool-card-icon-wrapper,
.enhanced-tool-card .tool-card-icon-wrapper {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    flex-shrink: 0 !important;
    display: flex !important;
}

.tool-card-link-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
}

@media (max-width: 768px) {
    a.featured-tool-card,
    .featured-tool-card,
    a.enhanced-tool-card,
    article.enhanced-tool-card,
    article.tool-card.enhanced-tool-card,
    .enhanced-tool-card {
        flex-direction: column !important;
    }
    
    a.featured-tool-card .featured-tool-icon-wrapper,
    .featured-tool-card .featured-tool-icon-wrapper,
    a.enhanced-tool-card .tool-card-icon-wrapper,
    article.enhanced-tool-card .tool-card-icon-wrapper,
    article.tool-card.enhanced-tool-card .tool-card-icon-wrapper,
    .enhanced-tool-card .tool-card-icon-wrapper {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}
