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

body {
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

/* ========== 导航栏 ========== */
.navbar {
    background-color: #1a1a2e;
    color: white;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    height: 60px;
}

    .navbar .brand {
        color: white;
        text-decoration: none;
        font-size: 22px;
        font-weight: bold;
        letter-spacing: 1px;
    }

        .navbar .brand span {
            color: #4fc3f7;
        }

    .navbar .nav-links {
        display: flex;
        align-items: center;
        gap: 4px;
    }

        .navbar .nav-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            font-size: 14px;
            padding: 8px 16px;
            border-radius: 4px;
            transition: all 0.2s;
        }

            .navbar .nav-links a:hover,
            .navbar .nav-links a.active {
                color: white;
                background-color: rgba(255, 255, 255, 0.15);
            }

/* ========== Hero 横幅 ========== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

    .hero h1 {
        font-size: 42px;
        margin-bottom: 16px;
        letter-spacing: 2px;
    }

    .hero p {
        font-size: 18px;
        color: rgba(255, 255, 255, 0.75);
        max-width: 600px;
        margin: 0 auto 30px;
        line-height: 1.6;
    }

    .hero .btn {
        font-size: 16px;
        padding: 12px 32px;
    }

/* ========== 通用容器 ========== */
.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

    .page-header h1 {
        font-size: 24px;
        color: #1a1a2e;
    }

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

    .section-title h2 {
        font-size: 28px;
        color: #1a1a2e;
        margin-bottom: 8px;
    }

    .section-title p {
        color: #888;
        font-size: 15px;
    }

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #1a73e8;
    color: white;
}

    .btn-primary:hover {
        background-color: #1557b0;
    }

.btn-success {
    background-color: #2ecc71;
    color: white;
}

    .btn-success:hover {
        background-color: #27ae60;
    }

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

    .btn-secondary:hover {
        background-color: #545b62;
    }

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

    .btn-outline:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: white;
    }

/* ========== 产品卡片网格 ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .product-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
        color: #1a1a2e;
    }

    .product-card .version {
        display: inline-block;
        background: #e8f0fe;
        color: #1a73e8;
        padding: 2px 10px;
        border-radius: 12px;
        font-size: 12px;
        margin-bottom: 12px;
    }

    .product-card .description {
        color: #666;
        font-size: 14px;
        margin-bottom: 16px;
        line-height: 1.6;
        min-height: 44px;
    }

    .product-card .card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #f0f0f0;
    }

    .product-card .price {
        font-size: 24px;
        font-weight: bold;
        color: #e53935;
    }

        .product-card .price::before {
            content: "¥";
            font-size: 14px;
        }

/* ========== 产品详情 ========== */
.detail-card {
    background: white;
    border-radius: 12px;
    padding: 36px;
    max-width: 750px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
}

    .detail-card h2 {
        color: #1a1a2e;
        margin-bottom: 20px;
        font-size: 26px;
    }

.detail-row {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .detail-row .label {
        width: 120px;
        font-weight: bold;
        color: #888;
        flex-shrink: 0;
    }

    .detail-row .value {
        flex: 1;
    }

.detail-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

/* ========== 表单 ========== */
.form-card {
    background: white;
    border-radius: 12px;
    padding: 36px;
    max-width: 600px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
}

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

    .form-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: bold;
        font-size: 14px;
        color: #555;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 10px 14px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
        font-family: inherit;
        transition: border-color 0.2s;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #1a73e8;
            box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
        }

    .form-group textarea {
        height: 120px;
        resize: vertical;
    }

.form-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

/* ========== 关于页面 ========== */
.about-section {
    background: white;
    border-radius: 12px;
    padding: 36px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
}

    .about-section h2 {
        color: #1a1a2e;
        margin-bottom: 16px;
        font-size: 22px;
        border-left: 4px solid #1a73e8;
        padding-left: 12px;
    }

    .about-section p {
        color: #555;
        line-height: 1.8;
        font-size: 15px;
    }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    text-align: center;
    padding: 24px 16px;
    border-radius: 10px;
    background: #f8f9ff;
}

    .feature-item .icon {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .feature-item h4 {
        color: #1a1a2e;
        margin-bottom: 8px;
    }

    .feature-item p {
        color: #888;
        font-size: 13px;
    }

/* ========== 联系页面 ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    text-align: center;
}

    .contact-card .icon {
        font-size: 40px;
        margin-bottom: 16px;
    }

    .contact-card h3 {
        color: #1a1a2e;
        margin-bottom: 10px;
    }

    .contact-card p {
        color: #666;
        font-size: 15px;
        line-height: 1.6;
    }

/* ========== 页脚 ========== */
.footer {
    background-color: #1a1a2e;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 24px;
    margin-top: 60px;
    font-size: 13px;
}

    .footer a {
        color: #4fc3f7;
        text-decoration: none;
    }

/* ========== 提示消息 ========== */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

    .empty-state h2 {
        margin-bottom: 10px;
        color: #bbb;
    }

/* ========== 此处为追加内容，添加到文件末尾 ========== */

/* 后台管理表格 */
.admin-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    border-collapse: collapse;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    overflow: hidden;
}

    .admin-table thead {
        background: #1a1a2e;
        color: white;
    }

    .admin-table th {
        padding: 14px 16px;
        text-align: left;
        font-size: 13px;
        font-weight: normal;
        letter-spacing: 0.5px;
    }

    .admin-table td {
        padding: 12px 16px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
    }

    .admin-table tbody tr:hover {
        background-color: #f8f9ff;
    }

.btn-danger {
    background-color: #e53935;
    color: white;
}

    .btn-danger:hover {
        background-color: #c62828;
    }


/* ========== 追加到文件末尾 ========== */

/* 产品轮播图 */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 340px;
    background: #1a1a2e;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
}

    .carousel-slide::before {
        content: "";
        position: absolute;
        top: -50%;
        right: -20%;
        width: 500px;
        height: 500px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
    }

    .carousel-slide::after {
        content: "";
        position: absolute;
        bottom: -30%;
        left: -10%;
        width: 300px;
        height: 300px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 50%;
    }

.carousel-content {
    text-align: center;
    z-index: 1;
    padding: 0 20px;
    max-width: 700px;
}

    .carousel-content h2 {
        font-size: 36px;
        margin-bottom: 12px;
        letter-spacing: 1px;
    }

    .carousel-content p {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.6;
        margin-bottom: 20px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

.carousel-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}

.carousel-price {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #ffeb3b;
    margin-bottom: 16px;
}

.carousel-btn {
    display: inline-block;
    padding: 10px 28px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.carousel-slide:hover .carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* 左右箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}

    .carousel-arrow:hover {
        background: rgba(0, 0, 0, 0.6);
    }

.carousel-prev {
    left: 16px;
}

.carousel-next {
    right: 16px;
}

/* 底部圆点指示器 */
.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

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

    .dot.active {
        background: white;
        transform: scale(1.2);
    }

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


/* ========== 追加到文件末尾 ========== */


/* 管理员登录页 */
.login-wrapper {
    min-height: calc(100vh - 60px - 85px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 40px 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

    .login-header h2 {
        color: #1a1a2e;
        font-size: 24px;
        margin-bottom: 8px;
    }

    .login-header p {
        color: #888;
        font-size: 14px;
    }

.login-error {
    background: #ffeaea;
    color: #e53935;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
    border: 1px solid #ffcdd2;
}

/* 导航栏用户状态 */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .nav-auth a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 14px;
        padding: 6px 14px;
        border-radius: 4px;
        transition: all 0.2s;
    }

        .nav-auth a:hover {
            color: white;
            background-color: rgba(255, 255, 255, 0.15);
        }

    .nav-auth .nav-user {
        color: #4fc3f7;
        font-size: 14px;
    }

/* 登录页分隔线 */
.login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #ccc;
    font-size: 13px;
}

    .login-divider::before,
    .login-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #e0e0e0;
    }

    .login-divider span {
        padding: 0 12px;
    }

/* 微信登录按钮 */
.btn-wechat {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background-color: #07c160;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s;
}

    .btn-wechat:hover {
        background-color: #06ad56;
    }