/*
Theme Name: 干燥剂行业主题
Theme URI: https://example.com
Author: Admin
Author URI: https://example.com
Description: 专为干燥剂行业设计的WordPress主题
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dryagent
*/

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

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s;
}

a:hover {
    color: #ff6600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.header-top {
    background: #0066cc;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.header-top-left {
    float: left;
    line-height: 30px;
    font-weight: bold;
    font-size: 16px;
}

.header-top-right {
    float: right;
    line-height: 30px;
}

.header-top-right a {
    color: #fff;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.header-top-right a:hover {
    color: #ffcc00;
}

.header-banner {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.banner-content {
    margin-bottom: 40px;
}

.banner-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.banner-content p {
    font-size: 18px;
    opacity: 0.9;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    min-width: 150px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

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

.header-nav {
    background: #fff;
    border-bottom: 2px solid #0066cc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav {
    text-align: center;
}

.nav ul {
    list-style: none;
    display: inline-block;
    margin: 0;
    padding: 0;
}

.nav li {
    display: inline-block;
    position: relative;
}

.nav > ul > li {
    margin: 0 15px;
}

.nav a {
    display: block;
    padding: 20px 25px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: #0066cc;
}

.nav > ul > li > a {
    position: relative;
    transition: color 0.3s ease;
}

.nav > ul > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #0066cc;
    transition: width 0.3s ease-in-out;
}

.nav > ul > li > a:hover {
    color: #0066cc;
}

.nav > ul > li > a:hover::before {
    width: 100%;
}

.nav > ul > li.current-menu-item > a::before {
    width: 100%;
}

.nav > ul > li.current-menu-item > a {
    color: #0066cc;
}

/* 下拉菜单 */
.nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    border-top: 2px solid #0066cc;
    display: none;
    z-index: 1000;
    min-width: 200px;
}

.nav ul li:hover > ul {
    display: block;
}

.nav ul ul li {
    display: block;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.nav ul ul li:last-child {
    border-bottom: none;
}

.nav ul ul a {
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.nav ul ul a:hover {
    background: #f0f7ff;
    color: #0066cc;
    padding-left: 25px;
}

/* Banner Slideshow */
.banner-slideshow {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slideshow-dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background-color: #fff;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Banner */
.banner {
    margin-top: 0;
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.banner h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ff6600;
    color: #fff;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s;
}

.btn:hover {
    background: #ff8533;
    color: #fff;
}

/* Features */
.features {
    padding: 60px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: all 0.3s;
}

.feature-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #0066cc;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.feature-item p {
    color: #666;
    font-size: 14px;
}

/* Products */
.products {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-item {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.product-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.product-img {
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    overflow: hidden;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.product-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* News */
.news {
    padding: 60px 0;
    background: #fff;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-item {
    display: flex;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: all 0.3s;
}

.news-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-date {
    width: 80px;
    text-align: center;
    padding-right: 20px;
    border-right: 2px solid #0066cc;
    margin-right: 20px;
}

.news-date .day {
    font-size: 36px;
    font-weight: bold;
    color: #0066cc;
}

.news-date .month {
    font-size: 14px;
    color: #999;
}

.news-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.news-content h3:hover {
    color: #0066cc;
}

.news-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* About */
.about {
    padding: 60px 0;
    background: #f9f9f9;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-img {
    background: #ddd;
    height: 300px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
}

/* Contact */
.contact {
    padding: 60px 0;
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-item {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 5px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.contact-item p {
    color: #666;
    font-size: 14px;
}

/* Footer */
.footer {
    background: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-item h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-item p, .footer-item a {
    color: #aaa;
    font-size: 14px;
    line-height: 2;
}

.footer-item a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 14px;
}

/* Page Header */
.page-header {
    background: #f8f9fa;
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
    font-size: 28px;
    color: #333;
    text-align: center;
}

.page-header p {
    text-align: center;
    color: #666;
    margin-top: 10px;
}

/* Page Content */
.page-content {
    padding: 60px 0;
}

/* About Page */
.about-page {
    padding: 60px 0;
}

/* Products Page */
.products-page {
    padding: 60px 0;
}

/* News Page */
.news-page {
    padding: 60px 0;
}

/* Clients */
.clients {
    padding: 60px 0;
    background: #f9f9f9;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    align-items: center;
    justify-items: center;
    margin-top: 40px;
}

.client-item {
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.client-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.client-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* Contact Page */
.contact-page {
    padding: 60px 0;
}

.contact-form {
    margin-top: 40px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .banner-left,
    .banner-right {
        width: 100%;
        float: none;
        text-align: center;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 1 1 45%;
        margin: 5px;
    }
}

@media (max-width: 768px) {
    .nav ul {
        display: block;
    }
    
    .nav li {
        display: block;
    }
    
    .nav > ul > li {
        margin: 0;
    }
    
    .nav ul ul {
        position: static;
        box-shadow: none;
        border: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .news-list {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .banner h1 {
        font-size: 28px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .stat-item {
        flex: 1 1 100%;
    }
}