/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #0a1628 0%, #1a2332 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* ==================== 导航栏 ==================== */
header {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff6b35;
}

/* ==================== Hero区域 ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 22, 40, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 250px;
    height: 250px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero h1 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(255, 107, 53, 0.5);
}

.hero p {
    font-size: 20px;
    color: #ccc;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== 按钮样式 ==================== */
.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #ff6b35;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #ff6b35;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #ff6b35;
    color: #fff;
}

/* ==================== 通用区块样式 ==================== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #fff;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #ccc;
    font-size: 18px;
    margin-bottom: 40px;
}

/* ==================== 产品展示 ==================== */
.products {
    background: rgba(26, 35, 50, 0.5);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
}

.product-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    font-size: 48px;
}

.product-card h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
}

.product-card p {
    color: #ccc;
    line-height: 1.8;
}

/* ==================== 应用介绍 ==================== */
.apps {
    background: rgba(10, 22, 40, 0.8);
}

.app-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.app-item {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
    border-radius: 15px;
    padding: 30px;
    border-left: 4px solid #ff6b35;
    transition: all 0.3s ease;
}

.app-item:hover {
    transform: translateX(10px);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(247, 147, 30, 0.2) 100%);
}

.app-item h4 {
    color: #ff6b35;
    font-size: 20px;
    margin-bottom: 10px;
}

.app-item p {
    color: #ccc;
}

/* ==================== 列表页样式 ==================== */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
}

.page-header h1 {
    font-size: 42px;
    color: #fff;
    margin-bottom: 20px;
}

.page-header p {
    color: #ccc;
    font-size: 18px;
}

.list-container {
    padding: 30px 0;
}

/* 商品列表网格 */
.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* 商品卡片 */
.list-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 商品图片 */
.list-item-image {
    width: 100%;
    height: 220px;
    background-color: #f8f9fa;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 商品内容区 */
.list-item-content {
    padding: 16px;
}

.list-item-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.5;
    height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.list-item-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 价格区域 */
.list-item-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.list-item-price {
    color: #ff4d4f;
    font-size: 22px;
    font-weight: bold;
}

.original-price {
    color: #999;
    font-size: 13px;
    text-decoration: line-through;
}

/* 按钮区域 */
.list-item-footer {
    margin-top: 8px;
}

.btn-detail {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-detail:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* 加载/空状态提示 */
.loading-tip, .empty-tip, .error-tip {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 15px;
}

.error-tip {
    color: #ff4d4f;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    padding: 20px 0 40px;
    flex-wrap: wrap;
}

.pagination a {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    background: #fff;
}

.pagination a:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f5f7ff;
}

.pagination a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.page-ellipsis {
    color: #999;
    padding: 0 8px;
    font-size: 14px;
}

.page-info {
    color: #999;
    font-size: 13px;
    margin-left: 12px;
}

/* ==================== 产品详情页 ==================== */
.product-detail {
    padding: 120px 0 80px;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-gallery {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.product-gallery-main {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    margin-bottom: 20px;
}

.product-info h1 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 20px;
}

.product-info .price {
    color: #ff6b35;
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-info .description {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-features {
    list-style: none;
    margin-bottom: 30px;
}

.product-features li {
    color: #ccc;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-features li::before {
    content: '✓';
    color: #ff6b35;
    margin-right: 10px;
    font-weight: bold;
}

.product-actions {
    display: flex;
    gap: 20px;
}

/* ==================== 用户协议 ==================== */
.agreement {
    background: rgba(26, 35, 50, 0.5);
}

.agreement-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px;
    color: #ccc;
    line-height: 2;
}

.agreement-content h4 {
    color: #ff6b35;
    margin: 20px 0 10px;
    font-size: 20px;
}

.agreement-content p {
    margin-bottom: 15px;
}

/* ==================== 关于我们 ==================== */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
}

.about-text h2 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 20px;
}

.about-text p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.stat-number {
    color: #ff6b35;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    color: #ccc;
    font-size: 16px;
}

/* ==================== 联系我们 ==================== */
.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info-box {
    padding: 40px;
}

.contact-info-box h2 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.info-text h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 5px;
}

.info-text p {
    color: #ccc;
}

/* ==================== 页脚 ==================== */
footer {
    background: rgba(10, 22, 40, 0.95);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #ff6b35;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 2;
}

.footer-section a:hover {
    color: #ff6b35;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==================== 面包屑导航 ==================== */
.breadcrumb {
    padding: 40px 0 10px;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 10px;
    color: #ccc;
}

.breadcrumb-list li:not(:last-child)::after {
    content: ' > ';
    margin-left: 10px;
    color: #666;
}

.breadcrumb-list a {
    color: #ff6b35;
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
    .product-detail-wrapper,
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .product-card,
    .app-item {
        padding: 20px;
    }

    .list-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }

    .list-item-image {
        height: 180px;
    }

    .list-item-content h3 {
        font-size: 13px;
        height: 39px;
    }

    .list-item-price {
        font-size: 20px;
    }

    .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .list-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .list-item-image {
        height: 200px;
    }
}