* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f5f5;
}
/* 响应式设计 */
@media only screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }
    
    .nav-links {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links li {
        margin: 5px 0;
    }
    
    .features, .stats-container, .news-cards {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .main-visual img, .news-card img {
        width: 100%;
    }
}

@media only screen and (max-width: 480px) {
    .header {
        padding: 20px 0;
    }
    
    .feature-card, .news-card {
        padding: 15px;
    }
    
    .why-choose, .latest-news {
        padding: 20px;
    }
}

.navbar {
    background-color: #4CAF50;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f0f0f0;
}

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

.header {
    text-align: center;
    padding: 40px 0;
}

.header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    color: #666;
    font-size: 1.2em;
}

.main-visual {
    text-align: center;
    margin: 40px 0;
}

.main-visual img {
    max-width: 100;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.feature-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-card h3 {
    color: #333;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.why-choose {
    background: white;
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
}

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

.choose-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.choose-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.choose-feature i {
    color: #4CAF50;
    font-size: 24px;
}

.stats {
    background: linear-gradient(to right, #333, #666);
    color: white;
    padding: 60px 0;
    margin-top: 60px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1em;
    opacity: 0.8;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #45a049;
}

.action-button {
    text-align: center;
    margin: 40px 0;
}

.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.latest-news {
    background: white;
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
}

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

.news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.news-card img {
    width: 100;
    height: 200px;
    object-fit: cover;
}

.news-card h3 {
    padding: 15px 15px 0;
    color: #333;
}

.news-card p {
    padding: 15px;
    color: #666;
    line-height: 1.6;
}

.page-title {
    text-align: center;
    margin: 40px 0;
    color: #333;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.recipe-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.recipe-card:hover {
    transform: translateY(-5px);
}

.recipe-card img {
    width: 100;
    height: 200px;
    object-fit: cover;
}

.recipe-card h2 {
    padding: 15px 15px 0;
    color: #333;
}

.recipe-card p {
    padding: 15px;
    color: #666;
    line-height: 1.6;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact-info i {
    margin-right: 10px;
    color: #4CAF50;
}

/* 成品展示样式 */
.product-showcase {
    background: white;
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.showcase-item {
    text-align: center;
}

.showcase-item img {
    max-width: 100;
    border-radius: 8px;
}

/* 功能选择样式 */
.function-selection {
    background: white;
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
}

.function-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.function-item {
    text-align: center;
}

.function-item i {
    font-size: 32px;
    color: #4CAF50;
    margin-bottom: 10px;
}

/* 内容反馈样式 */
.content-feedback {
    background: white;
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
}

.content-feedback textarea {
    width: 100;
    height: 120px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* 友情链接样式 */
.friend-links {
    background: white;
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
}

.friend-links ul {
    list-style: none;
}

.friend-links li {
    margin-bottom: 10px;
}

.friend-links a {
    color: #4CAF50;
    text-decoration: none;
}

.friend-links a:hover {
    text-decoration: underline;
}

/* 当前时间样式 */
.current-time {
    text-align: center;
    margin: 20px 0;
    font-size: 1.2em;
}

/* 日夜模式切换按钮样式 */
.mode-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

#mode-toggle-btn {
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#mode-toggle-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

#mode-toggle-btn i {
    font-size: 18px;
}

/* 日夜模式图标 */
.dark-mode #mode-toggle-btn {
    background-color: #666;
}

.dark-mode #mode-toggle-btn:hover {
    background-color: #777;
}

/* 日夜模式样式 */
.dark-mode {
    background-color: #333;
    color: white;
}

.dark-mode .product-showcase,
.dark-mode .function-selection,
.dark-mode .content-feedback,
.dark-mode .friend-links,
.dark-mode .latest-news,
.dark-mode .why-choose {
    background-color: #444;
}

.dark-mode .feature-card,
.dark-mode .news-card {
    background-color: #555;
}

.dark-mode h1, .dark-mode h2, .dark-mode h3 {
    color: white;
}

.dark-mode .button,
.dark-mode #mode-toggle-btn {
    background-color: #666;
}

.dark-mode .button:hover,
.dark-mode #mode-toggle-btn:hover {
    background-color: #777;
}

