* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: #f5f5f5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* 页面加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.loaded {
    animation: fadeIn 0.5s ease-out;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
    transition: box-shadow 0.3s;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

header h1 {
    font-size: 1.75rem;
    margin: 0;
    font-weight: 700;
}

header h1 a {
    font-weight: 700;
    text-decoration: none;
    color: #3b82f6;
    letter-spacing: -0.02em;
}

.header-tagline {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 400;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #333;
}

header nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

header nav a {
    text-decoration: none;
    color: #666;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    position: relative;
    font-weight: 500;
    font-size: 0.9375rem;
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

header nav a:hover {
    color: #007bff;
    background: rgba(0,123,255,0.1);
}

header nav a:hover::after {
    width: 80%;
}

/* Header with search layout */
/* Header layout when search is present */
header .header-search {
    margin-left: auto;
}

/* Fallback for browsers that don't support :has() */
header .container > h1 + nav + .header-search {
    margin-left: auto;
}

main {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-search-form {
    max-width: 42rem;
    margin: 0 auto;
}

.hero-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.hero-search-input {
    width: 100%;
    padding: 1rem 4rem 1rem 1.5rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 9999px;
    font-size: 1.125rem;
    background: rgba(255,255,255,0.95);
    color: #333;
    transition: all 0.3s ease;
}

.hero-search-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6);
    background: white;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

.hero-search-button {
    position: absolute;
    right: 0.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 9999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.hero-search-button:hover {
    background: #2563eb;
}

.search-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Featured Tools Section */
.featured-tools-section {
    padding: 4rem 0;
    background: white;
    background: #f9fafb;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2rem;
    text-align: center;
}

.featured-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.featured-tool-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.featured-tool-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-6px);
    border-color: rgba(0, 0, 0, 0.1);
}

.featured-tool-icon-wrapper {
    width: 100%;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.featured-tool-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.featured-tool-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.featured-tool-icon svg {
    width: 40px;
    height: 40px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.featured-tool-card:hover .featured-tool-icon {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
}

.featured-tool-content {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex: 1;
    gap: 0.75rem;
}

.tool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.tool-card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    flex: 1;
}

.featured-badge {
    font-size: 0.75rem;
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
    margin-left: 0.5rem;
}

.tool-card-description {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* Tool category badge in featured tools section */
.featured-tool-card .tool-category-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    background: #dbeafe;
    color: #1e40af;
}

.tool-card-link {
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Latest Articles Section */
.latest-articles-section {
    padding: 3rem 0;
    background: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header .section-title {
    text-align: left;
    margin-bottom: 0;
}

.section-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.section-link:hover {
    color: #2563eb;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.article-card h3 a {
    color: #111827;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h3 a:hover {
    color: #3b82f6;
}

.article-card .article-excerpt {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.article-card .article-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

/* Categories Section */
.categories-section {
    padding: 3rem 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.category-description {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.category-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-count {
    color: #6b7280;
    font-size: 0.875rem;
}

.category-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #2563eb;
}

/* Why Choose Section */
.why-choose-section {
    padding: 3rem 0;
    background: #f9fafb;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: #dbeafe;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #3b82f6;
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.feature-item p {
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* All Tools Section */
.all-tools-section {
    padding: 3rem 0;
    background: white;
}

.tool-category-section {
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.tool-category-section:last-of-type {
    border-bottom: none;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3b82f6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-title::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Enhanced Tool Cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.enhanced-tool-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
}

.enhanced-tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.tool-card-link-wrapper {
    display: flex;
    flex-direction: column;
    padding: 0;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.tool-card-icon-wrapper {
    width: 100%;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.tool-card-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.tool-card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.tool-card-icon svg {
    width: 40px;
    height: 40px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.enhanced-tool-card:hover .tool-card-icon {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
}

.tool-card-content {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex: 1;
    gap: 0.75rem;
}

.tool-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.tool-card-top h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    min-height: 2.8rem;
}

.featured-badge-small {
    font-size: 0.6875rem;
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.tool-card-desc {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

/* Category badge colors for enhanced cards */
.enhanced-tool-card .tool-category-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    white-space: nowrap;
}

/* Category-specific colors */
.tool-category-encrypt,
.tool-category-dev {
    background: #d1fae5;
    color: #065f46;
}

.tool-category-text {
    background: #dbeafe;
    color: #1e40af;
}

.tool-category-image {
    background: #fef3c7;
    color: #92400e;
}

.tool-category-time {
    background: #fed7aa;
    color: #9a3412;
}

.tool-category-everyday,
.tool-category-convert {
    background: #fce7f3;
    color: #9f1239;
}

.tool-category-encode,
.tool-category-format {
    background: #e0e7ff;
    color: #3730a3;
}

.tool-category-network,
.tool-category-design {
    background: #e9d5ff;
    color: #6b21a8;
}

.tool-category-test,
.tool-category-generate,
.tool-category-other {
    background: #f3f4f6;
    color: #374151;
}

.tool-card-action {
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.enhanced-tool-card:hover .tool-card-action {
    color: #2563eb;
}

.tools-count-info {
    text-align: center;
    padding: 2rem 0 1rem;
    color: #6b7280;
    font-size: 0.9375rem;
}

.tools-count-info strong {
    color: #111827;
    font-weight: 600;
}

.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.tool-category h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
    font-weight: 600;
}

.tool-category h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.tool-category {
    margin-bottom: 4rem;
}

.tool-category:last-child {
    margin-bottom: 2rem;
}


/* Header Search Styles */
.header-search {
    margin-left: auto;
}

.search-form-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-form-inline input[type="text"] {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9375rem;
    min-width: 200px;
    transition: border-color 0.3s ease;
}

.search-form-inline input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-form-inline button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.search-form-inline button:hover {
    background: #2563eb;
}

footer {
    background: #111827;
    color: #d1d5db;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-column h4 {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-column p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

/* Contact Page Styles */
.contact-page {
    padding: 2rem 0;
    min-height: 60vh;
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 800px;
    margin: 2rem auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.contact-card h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.contact-intro {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-form {
    margin-top: 2rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.contact-form .required {
    color: #ef4444;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.contact-form .form-actions {
    text-align: center;
    margin-top: 2rem;
}

.contact-form .btn-submit {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    min-width: 160px;
}

.contact-other {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.contact-other h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.contact-other p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.contact-other a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.contact-other a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .contact-card h1 {
        font-size: 1.75rem;
    }
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

.footer-note {
    color: #9ca3af;
    font-size: 0.8125rem;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-note {
    margin-top: 0.5rem !important;
}

/* 可访问性优化 */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* 跳过链接（无障碍访问） */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #007bff;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* 打印样式 */
@media print {
    header nav,
    footer nav,
    .tool-views {
        display: none;
    }
}

/* 搜索页面样式 */
.search-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.search-section h1 {
    margin-bottom: 1.5rem;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-box input[type="text"] {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-box button {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 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-box button:active {
    transform: translateY(0);
}

.search-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    font-size: 0.9rem;
}

.search-filters label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.search-results {
    background: white;
    padding: 2rem;
    border-radius: 8px;
}

.results-count {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

.results-section {
    margin-bottom: 3rem;
}

.results-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #999;
}

/* Article Detail Page Styles */
.article-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 900px;
    margin: 2rem auto;
}

.article-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content .article-meta {
    color: #666;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.article-content .article-body {
    margin-top: 2rem;
    line-height: 1.8;
    color: #374151;
    font-size: 1rem;
}

.article-content .article-body p {
    margin-bottom: 1rem;
}

/* 广告容器样式 */
.ads-container {
    margin: 2rem auto;
    padding: 1rem;
    text-align: center;
    max-width: 1200px;
}

.ads-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.ads-content-top {
    padding: 2rem 0;
}

.ads-content-bottom {
    padding: 2rem 0;
}

.ads-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 0;
}

.ads-container iframe,
.ads-container img {
    max-width: 100%;
    height: auto;
}

.ads-container .ad-code {
    display: inline-block;
}

/* 文章列表样式 */
.articles-header {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.articles-header h1 {
    margin-bottom: 0.5rem;
}

.articles-list {
    background: white;
    padding: 2rem;
    border-radius: 8px;
}

.article-item {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.3s ease;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    background-color: #f9fafb;
}

.article-item h3 {
    margin-bottom: 0.5rem;
}

.article-item h3 a {
    color: #111827;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.article-item h3 a:hover {
    color: #3b82f6;
}

.read-more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    margin-left: auto;
}

.read-more:hover {
    color: #2563eb;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.article-card,
.article-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.article-card:last-child,
.article-item:last-child {
    border-bottom: none;
}

.article-card h2,
.article-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.article-card h2 a,
.article-item h3 a {
    color: #333;
    text-decoration: none;
}

.article-card h2 a:hover,
.article-item h3 a:hover {
    color: #007bff;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.article-meta {
    font-size: 0.9rem;
    color: #999;
    margin-top: 0.5rem;
}

.read-more {
    margin-left: 1rem;
    color: #007bff;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 2rem 0;
}

.page-link {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background: white;
    transition: all 0.2s ease;
    font-weight: 500;
}

.page-link:hover {
    background: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

.page-current {
    padding: 0.5rem 1rem;
    border: 1px solid #007bff;
    border-radius: 4px;
    background: #007bff;
    color: white;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    header .container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .header-brand {
        flex: 1 1 auto;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
        border-top: 1px solid #e5e7eb;
    }
    
    .header-nav.show {
        display: flex;
    }
    
    .header-nav a {
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: left;
    }
    
    header nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-search {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .search-form-inline {
        width: 100%;
    }
    
    .search-form-inline input[type="text"] {
        flex: 1;
        min-width: 0;
    }
    
    .hero-section {
        padding: 2.5rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.9375rem;
    }
    
    .hero-search-form {
        margin-top: 1.5rem;
    }
    
    .featured-tools-section,
    .latest-articles-section,
    .categories-section,
    .why-choose-us-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .featured-tools-grid,
    .categories-grid,
    .tools-grid,
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero h1,
    .hero h2 {
        font-size: 1.75rem;
    }
    
    .tool-card,
    .article-card,
    .category-card {
        padding: 1.25rem;
    }
    
    footer .container {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    footer nav {
        gap: 1.5rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box button {
        width: 100%;
        padding: 0.875rem;
    }
    
    .search-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* 按钮和触摸目标优化 */
    .btn,
    button,
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    /* 表单输入优化 */
    input[type="text"],
    input[type="email"],
    textarea,
    select {
        font-size: 16px; /* 防止iOS自动缩放 */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .tool-card,
    .article-card,
    .category-card {
        padding: 1rem;
    }
    
    .contact-card {
        padding: 1.25rem;
        margin: 0.5rem;
    }
    
    .contact-card h1 {
        font-size: 1.5rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 平滑过渡效果 */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 改善焦点可见性 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    border-radius: 4px;
}

