/* Green Theme Color Overrides */
.featured-tools-section,
.latest-articles-section,
.categories-section,
.why-choose-section,
.all-tools-section {
    background: #e8f5e9; /* Light green background for content sections */
}

html {
    background: #e8f5e9;
}

body {
    background: #e8f5e9;
    color: #333;
}

main {
    background: #e8f5e9;
}

header {
    background: #4caf50 !important;
    backdrop-filter: none;
}

header h1 a {
    color: white;
}

.header-tagline {
    color: rgba(255,255,255,0.9);
}

header nav a {
    color: #c8e6c9;
}

header nav a:hover {
    color: white;
}

header nav a::after {
    background: white;
}

header nav a:hover::after {
    background: white;
}

.mobile-menu-toggle {
    color: white;
}

.hero-section {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.hero-search-button {
    background: #2e7d32;
}

.hero-search-button:hover {
    background: #388e3c;
}

.section-link {
    color: #4caf50;
}

.section-link:hover {
    color: #2e7d32;
}

.article-card h3 a:hover {
    color: #4caf50;
}

.category-link {
    color: #4caf50;
}

.category-link:hover {
    color: #2e7d32;
}

.feature-icon {
    background: #c8e6c9;
    color: #4caf50;
}

.category-title {
    border-bottom-color: #4caf50;
}

.enhanced-tool-card {
    border-left: 4px solid #4caf50;
}

.enhanced-tool-card:hover {
    border-left-color: #2e7d32;
}

/* 工具图标样式 - 图标颜色为白色，背景由getToolIconBackground函数控制 */
.tool-card-icon,
.featured-tool-icon {
    color: white !important;
}

.tool-card-icon svg,
.featured-tool-icon svg {
    width: 40px;
    height: 40px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.tool-card-action {
    color: #4caf50;
}

.enhanced-tool-card:hover .tool-card-action {
    color: #2e7d32;
}

footer {
    background: #388e3c;
}

.contact-other a {
    color: #4caf50;
}

.search-box button {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.search-box button:hover {
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
}

.results-section h2 {
    border-bottom-color: #4caf50;
}

.article-item h3 a:hover {
    color: #4caf50;
}

.read-more {
    color: #4caf50;
}

.read-more:hover {
    color: #2e7d32;
}

.page-link:hover {
    background: #4caf50;
    border-color: #4caf50;
}

.page-current {
    background: #4caf50;
    border-color: #4caf50;
}

a:focus,
button:focus,
input:focus,
textarea:focus {
    outline-color: #4caf50;
}

.skip-link {
    background: #4caf50;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline-color: #4caf50;
}

/* Category badge styles - ensure they inherit from default */
.tool-card-bottom {
    border-top-color: #e8f5e9;
}

/* Contact form styles */
.contact-card {
    background: white;
}
.contact-card h1 {
    color: #111827;
}
.contact-intro {
    color: #6b7280;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76,175,80,0.1);
}
.contact-form .btn-submit {
    background: #4caf50;
}
.contact-form .btn-submit:hover {
    background: #388e3c;
}
.contact-other h3 {
    color: #111827;
}
.contact-other p {
    color: #6b7280;
}

/* Articles page styles */
.articles-header {
    background: white;
}
.articles-header h1 {
    color: #111827;
}
.articles-list {
    background: white;
}
.article-item {
    border-bottom-color: #e5e7eb;
}
.article-item:hover {
    background-color: #f9fafb;
}
.article-item h3 a {
    color: #111827;
}
.article-item h3 a:hover {
    color: #4caf50;
}
.article-meta {
    color: #6b7280;
}
.read-more {
    color: #4caf50;
}
.read-more:hover {
    color: #2e7d32;
}

/* Search page styles */
.search-section {
    background: #e8f5e9;
}
.search-section h1 {
    color: #111827;
}
.search-box input[type="text"] {
    border-color: #d1d5db;
    background: white;
    color: #333;
}
.search-box input[type="text"]:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76,175,80,0.1);
}
.search-results {
    background: white;
}
.results-count {
    color: #666;
}
.no-results {
    color: #999;
}

/* 404 page styles */
.error-404 h1 {
    color: #4caf50;
}
.error-404 h2 {
    color: #1f2937;
}
.error-404 p {
    color: #6b7280;
}
.error-404 .btn {
    background: #4caf50;
}
.error-404 .btn:hover {
    background: #388e3c;
}
.error-404 .btn-secondary {
    background: #6b7280;
}
.error-404 .btn-secondary:hover {
    background: #4b5563;
}

/* Article content styles */
.article-container {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.article-container h1 {
    color: #111827;
}
.article-meta {
    color: #6b7280;
}
.article-body {
    color: #374151;
}
.article-body h2, .article-body h3 {
    color: #1f2937;
}
.article-body a {
    color: #4caf50;
}
.article-body a:hover {
    color: #2e7d32;
}

.article-content .article-meta {
    color: #666;
}

.article-content .article-body {
    color: #374151;
}

/* 广告容器样式 */
.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;
    background: #e8f5e9;
}

.ads-content-bottom {
    padding: 2rem 0;
    background: #e8f5e9;
}

.ads-footer {
    background: #e8f5e9;
    border-top: 1px solid #c8e6c9;
    padding: 1.5rem 0;
}

.ads-container iframe,
.ads-container img {
    max-width: 100%;
    height: auto;
}

.ads-container .ad-code {
    display: inline-block;
}
