/* 通用布局 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #e8f5e9 0%, #b2dfdb 100%);
    color: #2c3e50;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* 头部与导航 */
.header {
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
    box-shadow: 0 4px 20px rgba(67,160,71,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    margin: 0;
    color: #fff;
    font-size: 2.2em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(67,160,71,0.2);
    background: linear-gradient(45deg, #fff, #a5d6a7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    margin: 0;
    color: #e8f5e9;
    font-size: 1.1em;
    font-weight: 300;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5em;
}

.main-nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 0.8em 1.5em;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76,175,80,0.18), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.main-nav a:hover::before {
    left: 100%;
}

.main-nav a.active, .main-nav a:hover {
    background: rgba(76,175,80,0.18);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67,160,71,0.15);
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #388e3c 0%, #43a047 100%);
    color: #e8f5e9;
    padding: 3em 0 1em 0;
    margin-top: 4em;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #43a047, #66bb6a, #a5d6a7, #388e3c);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
    margin-bottom: 2em;
}

.footer-section h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 1em;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #fff;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5em;
}

.footer-section a {
    color: #c8e6c9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #a5d6a7;
}

.footer-bottom {
    text-align: center;
    color: #b2dfdb;
    font-size: 0.9em;
    padding-top: 2em;
    border-top: 1px solid #388e3c;
}

/* 按钮样式 */
.cta-button, .feature-link, .submit-btn, .calculate-btn, .product-link {
    display: inline-block;
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.8em 2em;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(67,160,71,0.18);
}

.cta-button::before, .feature-link::before, .submit-btn::before, .calculate-btn::before, .product-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before, .feature-link:hover::before, .submit-btn:hover::before, .calculate-btn:hover::before, .product-link:hover::before {
    left: 100%;
}

.cta-button:hover, .feature-link:hover, .submit-btn:hover, .calculate-btn:hover, .product-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67,160,71,0.25);
}

/* 表单样式 */
form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5em;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-top: 2em;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.form-group {
    margin-bottom: 1.5em;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5em;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95em;
}

input, select, textarea {
    width: 100%;
    padding: 0.8em 1em;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.9);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 0.3em;
    display: block;
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.3em;
}

.rating-stars input[type="radio"] {
    display: none;
}

.rating-stars label {
    font-size: 2em;
    color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input[type="radio"]:checked ~ label {
    color: #f39c12;
    transform: scale(1.1);
}

/* 轮播图样式 */
.hero-slider {
    position: relative;
    background: linear-gradient(135deg, #a5d6a7 0%, #e8f5e9 100%);
    border-radius: 20px;
    overflow: hidden;
    margin: 3em 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3em;
    box-sizing: border-box;
    display: none;
    background: linear-gradient(135deg, rgba(165,214,167,0.92) 0%, rgba(65, 190, 76, 0.92) 100%);
}

.slide.active {
    display: flex;
}

.slide-content {
    max-width: 50%;
    color: #fff;
}

.slide-content h2 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
    opacity: 0.9;
}

.slide-image {
    width: 50%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 15px;
    background: #e8f5e9;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.slide-image img:hover {
    transform: scale(1.05);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0 2em;
}

.slider-controls button {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 3em;
    height: 3em;
    font-size: 1.5em;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-controls button:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.slider-dots {
    text-align: center;
    margin-top: 1.5em;
    padding-bottom: 1em;
}

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

.slider-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 900px) {
    .header .container {
        flex-direction: column;
        gap: 1em;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .slide {
        flex-direction: column;
        text-align: center;
        padding: 2em;
    }

    .slide-content {
        max-width: 100%;
        margin-bottom: 2em;
    }

    .slide-content h2 {
        font-size: 2em;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 0.5em 0;
    }

    .logo h1 {
        font-size: 1.8em;
    }

    .main-nav a {
        padding: 0.6em 1em;
        font-size: 0.9em;
    }

    .slide {
        padding: 1.5em;
    }

    .slide-content h2 {
        font-size: 1.5em;
    }

    .slide-image img {
        max-width: 100%;
    }

    form {
        padding: 1.5em;
        margin: 1em 0;
    }

    .slider-controls {
        padding: 0 1em;
    }

    .slider-controls button {
        width: 2.5em;
        height: 2.5em;
        font-size: 1.2em;
    }
}
