html {
    scroll-behavior: smooth;
}

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

        body {
            font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            min-height: 100vh;
            color: white;
        }

        /* 3D等距插画背景 */
        .hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 400px;
            overflow: hidden;
            z-index: 0;
        }

        .isometric-elements {
            position: absolute;
            top: -50px;
            left: -100px;
            width: 600px;
            height: 400px;
            transform: rotateX(45deg) rotateY(-30deg);
            transform-style: preserve-3d;
			will-change: transform;
			transform: translateZ(0) rotateX(45deg) rotateY(-30deg);
			backface-visibility: hidden;
        }

        .element {
            position: absolute;
            background: rgba(255,255,255,0.1);
            border: 2px solid rgba(255,255,255,0.2);
        }

        .cube {
            width: 80px;
            height: 80px;
            background: linear-gradient(45deg, #00d4ff, #0099cc);
            transform: rotateX(30deg) rotateY(45deg);
            animation: float 3s ease-in-out infinite;
        }

        .book-3d {
            width: 60px;
            height: 80px;
            background: linear-gradient(45deg, #ff6b35, #f7931e);
            transform: rotateX(15deg) rotateY(30deg);
            animation: float 4s ease-in-out infinite 1s;
			will-change: transform;
			backface-visibility: hidden;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotateX(30deg) rotateY(45deg); }
            50% { transform: translateY(-20px) rotateX(30deg) rotateY(45deg); }
        }

        /* 导航栏 */
        .navbar {
            position: relative;
            z-index: 100;
            padding: 20px 0;
            background: rgba(0,0,0,0.1);
            backdrop-filter: blur(10px);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            width: 150px;
            height: auto;
        }

        .nav-menu {
            display: flex;
            justify-content: center;
            gap: 60px;
            list-style: none;
        }

        .nav-menu a {
            color: white;
            text-decoration: none;
            font-size: 16px;
            font-weight: 400;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-menu a:hover {
            color: #00d4ff;
            transform: translateZ(0) translateY(-2px); 
        }

        .nav-menu a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            width: 0;
            height: 2px;
            background: #00d4ff;
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .nav-menu a:hover::after {
            width: 100%;
        }

        /* 主要内容区域 */
        .main-content {
            position: relative;
            z-index: 10;
            padding: 80px 0;
            max-width: 1200px; /* 增大宽度以容纳按钮 */
            margin: 0 auto;
        }

        /* 图书卡片 - 缩小版 */
        .book-card {
            background: rgba(255,255,255,0.95);
            border-radius: 15px; /* 缩小圆角 */
            margin: 30px 15px; /* 缩小外边距 */
            padding: 30px; /* 缩小内边距 */
            box-shadow: 0 15px 45px rgba(0,0,0,0.3); /* 调整阴影 */
            display: flex;
            align-items: center;
            gap: 30px; /* 缩小内部间距 */
            backdrop-filter: blur(20px);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            color: #333;
            position: relative; /* 为按钮定位做准备 */
			will-change: transform;
			backface-visibility: hidden;
        }

        .book-card:hover {
            transform: translateZ(0) translateY(-8px); /* 减小悬停位移 */
            box-shadow: 0 25px 60px rgba(0,0,0,0.4); /* 调整悬停阴影 */
        }

/* 优化图书封面容器 - 缩小版 */
		.book-cover {
			flex-shrink: 0;
			width: 130px; /* 缩小封面宽度 */
			height: auto; /* 高度自适应 */
			border-radius: 8px; /* 缩小圆角 */
			overflow: hidden; /* 裁剪图片超出部分 */
			position: relative;
			display:block; 
			background: transparent; /* 👈 关键：移除白色背景 */
}

        .book-cover a {
          display: block;
          width: 100%;
          height: 100%;
}

        .book-cover img {
         width: 100%;
         height: 100%;
         object-fit: cover; /* 保持比例填充 */
         object-position: center;
         border-radius: 8px; /* 与容器一致 */
         transition: transform 0.3s ease;
         background: transparent; /* 👈 确保图片无背景 */
         display: block;
		 will-change: transform;
		 backface-visibility: hidden;
		 image-rendering: crisp-edges;
}

		.book-cover a:hover img {
			transform: translateZ(0) scale(1.03);
}
        .price-tag {
            position: absolute;
            bottom: -1px; /* 👈 向上微移，从 -10px 改为 -8px */
            left: 50%;
            transform: translateX(-50%);
            background: #ff4757;
            color: white;
            padding: 5px 16px;
            border-radius: 16px;
            font-size: 16px;
            font-weight: bold;
            box-shadow: 0 4px 12px rgba(255,71,87,0.4);
            white-space: nowrap;
            z-index: 10;
            min-width: 60px;
            text-align: center;
        }

        .original-price {
            position: absolute;
            top: 8px; /* 调整位置 */
            right: 8px; /* 调整位置 */
            background: rgba(0,0,0,0.7);
            color: white;
            padding: 3px 6px; /* 缩小标签 */
            border-radius: 8px; /* 调整圆角 */
            font-size: 11px; /* 缩小字体 */
            text-decoration: line-through;
        }

        .book-info {
            flex: 1;
        }

        .book-title {
            font-size: 22px; /* 缩小标题 */
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 8px; /* 缩小间距 */
			color: inherit;          /* 继承父级颜色 */
			text-decoration: none;   /* 去掉下划线 */
        }
		.book-title .book-link {
			color: inherit;          /* 继承父级颜色 */
			text-decoration: none;   /* 去掉下划线 */
		}
        .book-meta {
            display: flex;
            gap: 20px; /* 缩小间距 */
            margin-bottom: 15px; /* 缩小间距 */
            color: #7f8c8d;
            font-size: 13px; /* 缩小字体 */
        }

        .book-description {
            color: #555;
            line-height: 1.7; /* 调整行高 */
            margin-bottom: 20px; /* 缩小间距 */
            font-size: 14px; /* 缩小字体 */
        }

        .book-features {
            margin-bottom: 20px; /* 缩小间距 */
        }

        .book-features li {
            color: #2c3e50;
            margin-bottom: 6px; /* 缩小间距 */
            list-style: none;
            position: relative;
            padding-left: 16px; /* 缩小间距 */
        }

        .book-features li::before {
            content: '•';
            color: #3498db;
            font-weight: bold;
            position: absolute;
            left: 0;
        }

        .purchase-buttons {
            display: flex;
            gap: 12px; /* 缩小间距 */
            flex-wrap: wrap;
        }

        .purchase-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px; /* 缩小间距 */
            padding: 8px 16px; /* 缩小按钮 */
            background: #3498db;
            color: white;
            text-decoration: none;
            border-radius: 22px; /* 调整圆角 */
            font-size: 13px; /* 缩小字体 */
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(52,152,219,0.3); /* 调整阴影 */
        }

        .purchase-btn:hover {
            background: #2980b9;
            transform: translateY(-1px); /* 减小悬停位移 */
            box-shadow: 0 6px 16px rgba(52,152,219,0.4); /* 调整阴影 */
        }

        .purchase-btn.jd {
            background: #e3393c;
            box-shadow: 0 4px 12px rgba(227,57,60,0.3);
        }

        .purchase-btn.jd:hover {
            background: #c73235;
            box-shadow: 0 6px 16px rgba(227,57,60,0.4);
        }

        .purchase-btn.dangdang {
            background: #ff6900;
            box-shadow: 0 4px 12px rgba(255,105,0,0.3);
        }

        .purchase-btn.dangdang:hover {
            background: #e55a00;
            box-shadow: 0 6px 16px rgba(255,105,0,0.4);
        }

        .purchase-btn.tmall {
            background: #ff0036;
            box-shadow: 0 4px 12px rgba(255,0,54,0.3);
        }

        .purchase-btn.tmall:hover {
            background: #e6002e;
            box-shadow: 0 6px 16px rgba(255,0,54,0.4);
        }

        /* 侧边按钮容器 - 缩小版 */
        .side-buttons {
            position: absolute;
            right: 15px; /* 调整位置 */
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 12px; /* 缩小按钮间距 */
        }

        .side-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 90px; /* 缩小按钮宽度 */
            padding: 9px 8px; /* 缩小按钮 */
            background: white;
            color: #3498db;
            border-radius: 22px; /* 调整圆角 */
            box-shadow: 0 8px 24px rgba(0,0,0,0.2); /* 调整阴影 */
            text-decoration: none; /* 👈 确保按钮本身不带下划线 */
            font-weight: bold;
            z-index: 1000;
            transition: all 0.3s ease;
            font-size: 13px; /* 缩小字体 */
            text-align: center;
        }
        .side-btn-w {
            display: flex;
            align-items: center;
            justify-content: center;
            color: #3498db;
            font-weight: bold;
            z-index: 1000;
            transition: all 0.3s ease;
            font-size: 13px; /* 缩小字体 */
            text-align: center;
        }
        .side-btn:hover {
            background: #3498db;
            color: white;
            transform: translateZ(0) translateY(-1px) scale(1.05); /* 减小悬停位移 */
        }

        /* Footer */
        .footer {
            background: rgba(0, 0, 0, 0.2);
            padding: 40px 0 20px;
            margin-top: 60px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            text-align: center;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 20px;
        }

        .footer-links a {
            color: #ddd;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: #00d4ff;
        }

        .footer-bottom {
            color: #aaa;
            font-size: 13px;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .nav-container {
                flex-direction: column;
                gap: 20px;
            }

            .nav-menu {
                gap: 20px;
                font-size: 14px;
                flex-wrap: wrap;
            }

            .book-card {
                flex-direction: column;
                text-align: center;
                padding: 25px 15px; /* 调整移动端内边距 */
                margin: 20px 10px;
            }

            .book-cover {
                width: 120px; /* 移动端封面更小 */
                height: auto;
                margin: 0 auto;
            }

            .book-title {
                font-size: 20px; /* 移动端标题更小 */
            }

            .book-meta {
                justify-content: center;
                gap: 15px; /* 移动端间距更小 */
                font-size: 12px; /* 移动端字体更小 */
            }

            .book-description {
                font-size: 13px; /* 移动端字体更小 */
            }

            .purchase-buttons {
                justify-content: center;
                gap: 10px; /* 移动端按钮间距更小 */
            }

            .purchase-btn {
                padding: 8px 16px; /* 移动端按钮更小 */
                font-size: 12px; /* 移动端字体更小 */
            }

            .side-buttons {
                position: static;
                transform: none;
                display: flex;
                flex-direction: column;
                gap: 8px; /* 移动端按钮间距更小 */
                margin-top: 15px; /* 调整位置 */
                align-items: center;
            }

            .side-btn {
                width: 120px; /* 移动端按钮宽度 */
                padding: 10px;
                font-size: 12px; /* 移动端字体更小 */
            }

            .footer-links {
                flex-direction: column;
                gap: 10px;
            }
        }

        /* 装饰性元素 */
        .decorative-dots {
            position: absolute;
            width: 100%;
            height: 100%;
            pointer-events: none;
            opacity: 0.1;
        }

        .dot {
            position: absolute;
            width: 4px;
            height: 4px;
            background: white;
            border-radius: 50%;
            animation: twinkle 2s ease-in-out infinite;
        }

        @keyframes twinkle {
            0%, 100% { opacity: 0.1; }
            50% { opacity: 0.3; }
        }