:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --success: #10b981;
    --error: #ef4444;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg: #ffffff;
    --bg-gray: #f8fafc;
    --bg-dark: #f1f5f9;
    --border: #e2e8f0;
}

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

*:focus {
    outline: none;
}

*::-moz-focus-inner {
    border: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding-top: 110px;
    -webkit-tap-highlight-color: transparent;
}

a, button, input, select, textarea, img {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

a:focus, button:focus, input:focus, select:focus, textarea:focus, img:focus {
    outline: none;
    box-shadow: none;
}

img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    height: 110px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    justify-content: space-between;
}

.sidebar-logo {
    height: 99px;
}

.sidebar-logo img {
    height: 100%;
    width: auto;
}

.sidebar-nav {
    display: flex;
    gap: 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 15px;
    font-weight: 500;
}

.sidebar-nav a i {
    font-size: 18px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--primary);
    color: #fff;
}

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 1001;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
}

.mobile-logo {
    height: 48px;
}

.mobile-logo img {
    height: 100%;
    width: auto;
}

.mobile-menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    color: var(--text);
    transition: all 0.2s;
}

.mobile-menu-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 16px;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-menu a:hover {
    background: var(--bg-gray);
}

.mobile-menu a i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.mascot {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    cursor: pointer;
}

.mascot img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: transform 0.3s ease;
}

.mascot:hover img {
    transform: scale(1.05);
}

.mascot-bubble {
    position: absolute;
    bottom: 76px;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mascot:hover .mascot-bubble {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    padding: 0;
    background: transparent;
}

.slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: transparent;
}

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

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background: transparent;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide img.loaded {
    opacity: 1;
}

.slide img.error {
    opacity: 0;
}

.slide-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.slide-loading i {
    font-size: 32px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 80px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
}

.slide-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.slide-content p {
    font-size: 16px;
    opacity: 0.9;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: var(--text);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-btn:hover {
    background: #fff;
}

.slider-btn.prev {
    left: 24px;
}

.slider-btn.next {
    right: 24px;
}

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.slider-dot.active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}

.section {
    padding: 80px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.product-card.featured {
    border-color: var(--primary);
    position: relative;
}

.product-card.featured::before {
    content: '推荐';
    position: absolute;
    top: -1px;
    right: 24px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 0 0 6px 6px;
}

.product-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.product-tag {
    padding: 4px 10px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.product-tag.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.product-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.product-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li i {
    color: var(--success);
    font-size: 12px;
}

.product-info {
    background: var(--bg-gray);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.product-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.product-info-label {
    color: var(--text-muted);
}

.product-info-value {
    color: var(--text);
    font-weight: 600;
}

.product-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.product-price span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
}

.product-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-btn:hover {
    background: var(--primary-dark);
}

.about-section {
    background: var(--bg-gray);
}

.about-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.about-content > p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 28px;
    transition: all 0.2s;
}

.contact-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
}

.contact-icon.green {
    background: var(--success);
}

.contact-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.contact-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.form-label span {
    color: var(--error);
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    transition: all 0.2s;
}

.form-input:focus {
    border-color: var(--primary);
    background: var(--bg);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-submit:hover {
    background: var(--primary-dark);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    display: none;
    margin-bottom: 16px;
}

.form-message.success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message.error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.geetest-captcha {
    width: 100%;
    margin-bottom: 16px;
}

.geetest-captcha > div {
    width: 100% !important;
}

footer {
    background: #fff;
    padding: 48px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.footer-text {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.footer-providers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-provider {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
    padding: 8px 16px;
    background: var(--bg-gray);
    border-radius: 8px;
    transition: all 0.2s;
}

.footer-provider:hover {
    background: var(--border);
}

.footer-provider img {
    height: 24px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .slider {
        height: 400px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 64px;
    }

    .sidebar {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    .slider {
        height: 300px;
    }

    .slide-content {
        padding: 40px 24px;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 26px;
    }

    .product-card {
        padding: 24px;
    }

    .product-name {
        font-size: 20px;
    }

    .product-price {
        font-size: 24px;
    }

    .contact-cards {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 100%;
        max-width: 300px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .mascot {
        bottom: 24px;
    }

    .mascot img {
        width: 52px;
        height: 52px;
    }

    .mascot-bubble {
        bottom: 64px;
        font-size: 11px;
    }

    footer {
        padding: 40px 16px;
    }

    .footer-logo {
        height: 48px;
    }

    .footer-providers {
        flex-direction: column;
        gap: 16px;
    }

    .footer-provider {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .footer-provider img {
        height: 22px;
    }
}

@media (max-width: 480px) {
    .slider {
        height: 250px;
    }

    .slide-content h2 {
        font-size: 20px;
    }

    footer {
        padding: 32px 12px;
    }

    .footer-logo {
        height: 40px;
    }

    .footer-text {
        font-size: 13px;
    }

    .footer-copyright {
        font-size: 12px;
    }

    .footer-provider {
        font-size: 12px;
        padding: 10px 12px;
    }

    .footer-provider img {
        height: 20px;
        max-width: 60px;
    }
}
