/* --- style.css (Excel 离线版 - 视觉优化修复) --- */

/* 全局变量与重置 */
:root {
    /* 主色调：Excel 极光绿渐变 */
    --brand-dark: #107C41;  /* 官方绿 */
    --brand-light: #4ade80; /* 亮绿 */
    --brand-gradient: linear-gradient(135deg, #107C41 0%, #4ade80 100%);
    
    /* 辅助色 */
    --text-dark: #064e3b;    /* 深墨绿文本 */
    --text-gray: #64748b;
    --bg-base: #f0fdf4;      /* 极淡绿背景 */
    
    /* 阴影 */
    --shadow-sm: 0 4px 6px -1px rgba(16, 124, 65, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(16, 124, 65, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Microsoft YaHei", "Segoe UI", sans-serif; }
body { 
    background-color: var(--bg-base); 
    color: var(--text-dark); 
    overflow-x: hidden; 
    /* 绿色光晕 */
    background-image: radial-gradient(circle at 10% 20%, rgba(74, 222, 128, 0.08) 0%, transparent 20%),
                      radial-gradient(circle at 90% 80%, rgba(16, 124, 65, 0.08) 0%, transparent 20%);
}
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* SVG 图标通用样式 */
svg { fill: currentColor; vertical-align: middle; display: inline-block; }

/* 1. 顶部导航 */
.header { 
    background: rgba(255, 255, 255, 0.95);
    height: 70px; display: flex; justify-content: center; position: sticky; top:0; z-index: 1000; 
    box-shadow: 0 1px 15px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}
.header-container { width: 1200px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo { 
    color: #107C41; font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 12px; cursor: pointer; letter-spacing: -0.5px;
}
/* 顶部 Logo 图标大小调整 */
.logo svg { width: 32px; height: 32px; }
.logo:hover { opacity: 0.8; transform: scale(1.02); }

.header-btn {
    background: var(--brand-gradient); 
    color: #fff; padding: 10px 25px; border-radius: 50px; 
    font-size: 14px; margin-left: 10px; font-weight: bold; display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}
.header-btn svg { width: 16px; height: 16px; }
.header-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74, 222, 128, 0.5); }

/* 2. Hero 区域 (本地图片) */
.hero {
    background: linear-gradient(120deg, rgba(6, 78, 59, 0.9) 0%, rgba(16, 124, 65, 0.85) 100%), 
                url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 560px; /* 增高以容纳大图标 */
    color: #fff; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
}
.hero::before {
    content: ''; position: absolute; width: 400px; height: 400px; background: rgba(255,255,255,0.1);
    border-radius: 50%; top: -100px; right: -50px; filter: blur(60px); animation: float 6s infinite ease-in-out;
}
@keyframes float { 0%,100% {transform: translateY(0);} 50% {transform: translateY(-20px);} }

.hero-container { width: 1200px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; z-index: 2; }
.hero-text h1 { font-size: 56px; font-weight: 800; margin-bottom: 20px; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.hero-text h2 { font-size: 22px; font-weight: 500; opacity: 0.95; margin-bottom: 40px; }
.hero-tags { display: flex; gap: 10px; }
.hero-tags span { 
    background: rgba(255,255,255,0.2); backdrop-filter: blur(5px);
    padding: 8px 16px; border-radius: 8px; font-size: 14px; 
    border: 1px solid rgba(255,255,255,0.3); display: flex; align-items: center; gap: 8px;
}
.hero-tags span svg { color: #86efac; width: 16px; height: 16px; }

.btn-hero {
    display: inline-block; margin-top: 40px; padding: 16px 50px; font-size: 18px; font-weight: bold; color: #107C41; 
    background: #fff; border-radius: 50px; transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.btn-hero:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 15px 40px rgba(0,0,0,0.3); }

/* 3D 盒子 - 尺寸加大 */
.hero-box-3d {
    width: 340px; height: 340px; /* 加大盒子 */
    background: rgba(255,255,255,0.15); 
    backdrop-filter: blur(20px);
    transform: perspective(1000px) rotateY(-20deg) rotateX(10deg);
    border-radius: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 20px 20px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.5);
}

/* 3. 产品列表 */
.products-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 60px; position: relative; }
.section-header h2 { font-size: 36px; color: #064e3b; font-weight: 800; z-index: 2; position: relative; }
.section-header::after { 
    content: 'EXCEL'; position: absolute; top: -40px; left: 50%; transform: translateX(-50%); 
    font-size: 100px; color: rgba(16, 124, 65, 0.05); font-weight: 900; pointer-events: none; z-index: 1;
}

.product-grid {
    width: 1200px; margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.card {
    background: #fff; border-radius: 16px; padding: 25px;
    box-shadow: var(--shadow-sm); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.5);
}
.card::before {
    content:''; position: absolute; top: 0; left: 0; width: 100%; height: 6px;
    background: var(--brand-gradient);
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card-head { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.icon-box {
    width: 44px; height: 44px; 
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); 
    color: #15803d;
    border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900;
}
.card:hover .icon-box { background: var(--brand-gradient); color: #fff; transform: rotate(10deg); transition: 0.3s; }

.card-title { font-weight: 800; font-size: 18px; color: #334155; }
.card-desc { font-size: 13px; color: #64748b; line-height: 1.6; height: 42px; overflow: hidden; margin-bottom: 20px; }

.sys-info { 
    margin-bottom: 20px; font-size: 12px; color: #475569; font-weight: 600; 
    background: #f1f5f9; padding: 8px 12px; border-radius: 8px; display: flex; align-items: center; gap: 6px;
}
.sys-info svg { color: #16a34a; width: 14px; height: 14px; }

.btn-download {
    display: block; width: 100%; padding: 12px 0; border-radius: 8px; 
    background: linear-gradient(90deg, #107C41, #16a34a); 
    color: #fff; font-weight: bold; text-align: center;
    font-size: 14px; transition: 0.3s; position: relative; overflow: hidden;
}
.btn-download::after {
    content:''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}
.btn-download:hover { background: linear-gradient(90deg, #15803d, #16a34a); box-shadow: 0 5px 15px rgba(22, 163, 74, 0.4); }
.btn-download:hover::after { left: 100%; }

/* 4. 文档与协作 (本地图片) */
.info-section { 
    padding: 100px 0; margin-top: 60px; position: relative;
    background: #fff;
}
.info-section::before {
    content:''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%); z-index: 1; transform: skewY(-3deg); transform-origin: top left;
}

.info-header { text-align: center; margin-bottom: 50px; position: relative; z-index: 2; }
.info-header h2 { font-size: 32px; color: #064e3b; font-weight: 800; }
.info-header h2 span { color: #22c55e; background: -webkit-linear-gradient(0deg, #107C41, #22c55e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.info-box {
    position: relative; z-index: 2; width: 1200px; margin: 0 auto; display: flex; border-radius: 24px; overflow: hidden; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); background: #fff;
}
.info-content { width: 45%; padding: 70px; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.info-content h3 { font-size: 28px; margin-bottom: 25px; color: #064e3b; line-height: 1.3; font-weight: 700; }
.info-content p { font-size: 16px; color: #64748b; line-height: 1.8; margin-bottom: 40px; }
.info-img { 
    width: 55%; 
    /* 引用本地图片 */
    background: url('../images/info-bg.jpg') center/cover; 
    position: relative;
}
.info-img::after {
    content:''; position: absolute; top:0; left:0; width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(16, 124, 65, 0.4), transparent);
}

/* 5. 常见问题 (本地纹理) */
.faq-section { 
    background: #022c22; padding: 100px 0; color: #fff; 
    /* 引用本地纹理 */
    background-image: url('../images/texture.png'); 
    position: relative;
}
.faq-wrap { 
    width: 1000px; margin: 0 auto; display: flex; border-radius: 16px; overflow: hidden; 
    background: rgba(6, 78, 59, 0.8); backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); border: 1px solid rgba(255,255,255,0.1);
}
.faq-nav { width: 300px; background: rgba(0,0,0,0.2); display: flex; flex-direction: column; }
.nav-item { 
    padding: 25px 30px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.05); 
    font-size: 15px; color: #6ee7b7; transition: 0.3s; display: flex; justify-content: space-between; align-items: center;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-item.active { 
    background: #064e3b; color: #4ade80; font-weight: bold; 
    border-left: 4px solid #4ade80;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}
.nav-item svg { width: 10px; height: 16px; }

.faq-content-area { flex: 1; padding: 50px; background: #064e3b; color: #ecfdf5; min-height: 350px; }
.tab-content { display: none; animation: slideUp 0.4s ease-out; }
.tab-content.active { display: block; }
.tab-content h3 { color: #4ade80; margin-bottom: 20px; font-size: 24px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.tab-content h3 svg { width: 24px; height: 24px; }
.tab-content p { font-size: 15px; line-height: 1.8; color: #d1fae5; }
@keyframes slideUp { from {opacity: 0; transform: translateY(10px);} to {opacity: 1; transform: translateY(0);} }

/* 页脚 */
footer { background: #022c22; color: #6ee7b7; text-align: center; padding: 60px 0; font-size: 13px; }
footer strong { color: #a7f3d0; font-size: 18px; display: block; margin-bottom: 10px; }

/* 响应式 */
@media (max-width: 1200px) { .header-container, .hero-container, .product-grid, .info-box { width: 100%; padding: 0 20px; } .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .hero { height: auto; padding: 100px 0; text-align: center; clip-path: none; } .hero-container { flex-direction: column; } .hero-box-3d { margin-top: 50px; } .hero-tags { justify-content: center; } .product-grid { grid-template-columns: repeat(2, 1fr); } .info-box { flex-direction: column; } .info-content, .info-img { width: 100%; height: 350px; } .faq-wrap { flex-direction: column; width: 95%; } .faq-nav { width: 100%; } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }