/* 医疗器械现代科技风格 - 移动优先 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* 颜色变量 - 现代科技感配色 */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004d99;
    --primary-light: #e6f2ff;
    --secondary-color: #00a8e8;
    --accent-color: #00c853;
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #00a8e8 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --text-light: #999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 30px rgba(0, 102, 204, 0.3);
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== 头部样式 ==================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

.header-top {
    background: var(--gradient-primary);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.logo img {
    display: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.logo-text h1 {
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--text-gray);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.header-contact {
    display: none;
    font-size: 0.9rem;
}

.menu-toggle {
    flex-shrink: 0;
}

.header-contact a {
    color: var(--primary-color);
    font-weight: 600;
    padding: 8px 20px;
    background: var(--primary-light);
    border-radius: 20px;
    transition: all 0.3s;
}

.header-contact a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.menu-toggle:hover {
    background: var(--primary-light);
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==================== 导航样式 ==================== */
.nav {
    background: var(--bg-white);
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav.active {
    display: block;
}

.nav-list {
    padding: 10px 0;
}

.nav-item {
    border-bottom: 1px solid var(--border-color);
}

.nav-item:last-child {
    border-bottom: none;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: var(--primary-light);
    padding-left: 30px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 20px;
}

/* ==================== Banner样式 ==================== */
.banner {
    background: var(--gradient-primary);
    color: white;
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

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

.banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(245, 247, 250, 1), transparent);
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease;
}

.banner p {
    font-size: 1rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 装饰粒子 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* ==================== 主内容区 ==================== */
.main {
    padding: 25px 0;
}

.section {
    margin-bottom: 35px;
}

.section-title {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid transparent;
    background-image: linear-gradient(#fff, #fff), var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.section-title::before {
    content: '';
    width: 6px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

/* ==================== 特色功能卡片 ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    background: var(--bg-white);
    padding: 25px 15px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.feature-item h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ==================== 产品卡片 ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.product-card:hover::after {
    border-color: var(--primary-color);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 102, 204, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.product-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    transition: all 0.3s;
}

.product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

/* ==================== 产品详情页 ==================== */
.product-detail {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.product-detail-image-wrapper {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.product-detail-image {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    transition: transform 0.5s;
}

.product-detail:hover .product-detail-image {
    transform: scale(1.05);
}

.product-detail-content {
    padding: 25px;
}

.product-detail-title {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
    font-weight: 700;
}

.product-meta {
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0f7ff 100%);
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
}

.product-meta-item {
    display: flex;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.product-meta-item:last-child {
    margin-bottom: 0;
}

.product-meta-label {
    color: var(--text-gray);
    min-width: 90px;
    font-weight: 500;
}

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

.product-section {
    margin-top: 28px;
}

.product-section h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.product-section p,
.product-section li {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.product-section ul {
    padding-left: 20px;
}

.product-section li {
    position: relative;
    padding-left: 18px;
}

.product-section li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ==================== FAQ 常见问题 ==================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.faq-item[open] {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 400;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 18px 14px;
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ==================== 对比表 ==================== */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
    overflow-x: auto;
    display: block;
}

.comparison-table th {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    background: var(--primary-light);
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.comparison-table td {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.comparison-table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

.comparison-table tbody tr:hover {
    background: var(--primary-light);
}

@media (min-width: 768px) {
    .comparison-table {
        display: table;
    }
}

/* ==================== 联系我们 ==================== */
.contact-grid {
    display: grid;
    gap: 18px;
}

.contact-card {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 0.95rem;
}

.contact-icon {
    font-size: 1.8rem;
}

/* ==================== 公司简介 ==================== */
.about-content {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
}

.about-content p {
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 15px;
    font-size: 0.95rem;
    padding-left: 15px;
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--gradient-dark);
    color: white;
    padding: 30px 0;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.footer-content {
    text-align: center;
}

.footer-info {
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-info strong {
    font-size: 1.1rem;
    opacity: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-links a {
    color: white;
    opacity: 0.8;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 3px;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-icp {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-icp p {
    font-size: 0.85rem;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links-section {
    text-align: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-links-title {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.9;
    color: white;
}

.footer-friend-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-friend-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
    padding: 4px 12px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-friend-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

/* ==================== 面包屑导航 ==================== */
.breadcrumb {
    background: var(--bg-white);
    padding: 15px 18px;
    margin-bottom: 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary-color);
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-light);
    margin: 0 8px;
}

/* ==================== 响应式设计 - 平板 ==================== */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .header-content {
        padding: 18px 0;
    }
    
    .logo {
        gap: 12px;
    }
    
    .logo img {
        display: block;
        height: 50px;
        max-height: 50px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }
    
    .logo-text {
        display: flex;
    }
    
    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    .logo-text p {
        font-size: 0.85rem;
    }
    
    .header-contact {
        display: block;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .nav {
        display: block;
        position: static;
        box-shadow: none;
        background: transparent;
    }
    
    .nav-list {
        display: flex;
        justify-content: center;
        gap: 5px;
        padding: 0;
    }
    
    .nav-item {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 12px 25px;
        font-size: 0.95rem;
        border-radius: 25px;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: var(--gradient-primary);
        color: white;
        padding-left: 25px;
        box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    }
    
    .banner {
        padding: 80px 0;
    }
    
    .banner h2 {
        font-size: 2.5rem;
    }
    
    .banner p {
        font-size: 1.2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 25px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-detail-image {
        max-height: 450px;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* ==================== 响应式设计 - 桌面 ==================== */
@media (min-width: 1024px) {
    .container {
        padding: 0 50px;
    }
    
    .logo img {
        height: 60px;
    }
    
    .logo-text h1 {
        font-size: 1.6rem;
    }
    
    .banner {
        padding: 100px 0;
    }
    
    .banner h2 {
        font-size: 3rem;
    }
    
    .main {
        padding: 50px 0;
    }
    
    .section {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-detail-content {
        padding: 40px;
    }
    
    .product-detail-title {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer {
        padding: 45px 0;
    }
    
    .footer-info p {
        font-size: 1rem;
    }
}

/* ==================== 工具类 ==================== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ==================== 动画效果 ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* 滚动显示动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 加载动画 ==================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* ==================== 打印样式 ==================== */
@media print {
    .header,
    .nav,
    .footer,
    .product-btn {
        display: none;
    }
    
    .main {
        padding: 0;
    }
    
    .product-detail {
        box-shadow: none;
    }
}
