/* ========================================
   明洋装饰官网 - 精简样式表
   ======================================== */

/* CSS变量 */
:root {
    --blue: #004ea2;
    --blue-dark: #003d82;
    --orange: #ff6b00;
    --text: #333;
    --text-gray: #666;
    --text-light: #999;
    --bg-light: #f5f7fa;
    --white: #fff;
}

/* 基础重置 */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { 
    font-family:'Microsoft YaHei','PingFang SC','Helvetica Neue',sans-serif; 
    color:var(--text); 
    line-height:1.6;
}
.container { max-width:1200px; margin:0 auto; padding:0 20px; }
a { text-decoration:none; color:inherit; transition:color 0.3s; }
img { max-width:100%; height:auto; display:block; }
ul { list-style:none; }

/* 导航 */
.header { 
    background:var(--blue); 
    color:var(--white); 
    position:sticky; 
    top:0; 
    z-index:1000;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}
.header-inner { 
    display:flex; 
    align-items:center; 
    height:68px; 
    gap:20px;
}
.logo { 
    font-size:20px; 
    font-weight:bold; 
    color:var(--white); 
    white-space:nowrap;
    flex-shrink:0;
}
.nav { 
    display:flex; 
    gap:20px; 
    margin-left:auto;
}
.nav a { 
    color:var(--white); 
    font-size:14px;
    padding:5px 0;
    position:relative;
}
.nav a::after {
    content:'';
    position:absolute;
    bottom:0;
    left:0;
    width:0;
    height:2px;
    background:var(--orange);
    transition:width 0.3s;
}
.nav a:hover::after { width:100%; }
.header-phone { 
    background:var(--orange); 
    color:var(--white); 
    padding:8px 16px; 
    border-radius:4px; 
    font-weight:bold; 
    white-space:nowrap;
    flex-shrink:0;
}
.header-phone:hover { background:#e55a00; }
.menu-toggle { 
    display:none; 
    background:none; 
    border:none; 
    color:var(--white); 
    font-size:28px; 
    cursor:pointer;
}

/* Banner */
.banner { 
    position:relative; 
    height:80vh; 
    min-height:450px; 
    max-height:700px;
    overflow:hidden; 
}
.banner-slide { 
    position:absolute; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    opacity:0; 
    transition:opacity 1s ease-in-out; 
}
.banner-slide.active { opacity:1; }
.banner-slide img { 
    width:100%; 
    height:100%; 
    object-fit:cover; 
}
.banner-overlay { 
    position:absolute; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    background:linear-gradient(135deg,rgba(0,74,162,0.7) 0%,rgba(0,0,0,0.3) 100%); 
}
.banner-text { 
    position:absolute; 
    top:50%; 
    left:50%; 
    transform:translate(-50%,-50%); 
    text-align:center; 
    color:var(--white); 
    z-index:2;
    width:90%;
    max-width:800px;
}
.banner-title { 
    font-size:48px; 
    font-weight:bold; 
    margin-bottom:16px;
    text-shadow:2px 2px 4px rgba(0,0,0,0.3);
}
.banner-subtitle { 
    font-size:20px; 
    margin-bottom:32px; 
    opacity:0.95; 
}
.banner-btns { display:flex; justify-content:center; gap:16px; flex-wrap:wrap; }
.btn { 
    display:inline-block; 
    padding:14px 36px; 
    border-radius:4px; 
    font-size:16px; 
    font-weight:bold;
    cursor:pointer;
    border:none;
}
.btn-orange { background:var(--orange); color:var(--white); }
.btn-orange:hover { background:#e55a00; }
.btn-outline { border:2px solid var(--white); color:var(--white); background:transparent; }
.btn-outline:hover { background:rgba(255,255,255,0.15); }
.btn-blue { background:var(--blue); color:var(--white); }
.btn-blue:hover { background:var(--blue-dark); }

/* 小Banner（内页用） */
.page-banner { 
    height:300px; 
    position:relative; 
    display:flex; 
    align-items:center; 
    justify-content:center;
    background:var(--blue);
}
.page-banner img { 
    position:absolute; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    object-fit:cover;
}
.page-banner-overlay {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,74,162,0.75);
}
.page-banner-text {
    position:relative;
    z-index:2;
    text-align:center;
    color:var(--white);
}
.page-banner-text h1 { font-size:42px; margin-bottom:10px; }
.page-banner-text p { font-size:18px; opacity:0.9; }

/* 服务流程 */
.section { padding:80px 0; }
.section-title { 
    text-align:center; 
    margin-bottom:50px; 
}
.section-title h2 { 
    font-size:36px; 
    color:var(--text); 
    margin-bottom:15px; 
}
.section-title p { 
    color:var(--text-gray); 
    font-size:16px; 
}
.process { 
    display:flex; 
    justify-content:space-between; 
    flex-wrap:wrap;
    gap:20px;
}
.process-step { 
    flex:1; 
    min-width:180px; 
    text-align:center; 
    padding:30px 15px;
    background:var(--white);
    border-radius:8px;
    box-shadow:0 4px 15px rgba(0,0,0,0.08);
}
.process-step .num { 
    width:60px; 
    height:60px; 
    line-height:60px; 
    background:var(--blue); 
    color:var(--white); 
    border-radius:50%; 
    font-size:24px; 
    font-weight:bold;
    margin:0 auto 15px;
}
.process-step h3 { font-size:18px; margin-bottom:8px; }
.process-step p { font-size:14px; color:var(--text-gray); }

/* 品牌数据 */
.brand-data { 
    background:var(--bg-light); 
    padding:60px 0; 
}
.data-grid { 
    display:flex; 
    justify-content:space-around; 
    flex-wrap:wrap;
    gap:30px;
}
.data-item { text-align:center; }
.data-item .num { 
    font-size:48px; 
    font-weight:bold; 
    color:var(--blue); 
}
.data-item .label { 
    font-size:16px; 
    color:var(--text-gray); 
    margin-top:5px; 
}

/* 服务板块（左右布局） */
.service-block { 
    display:flex; 
    align-items:center; 
    gap:60px; 
    padding:60px 0;
}
.service-block.reverse { flex-direction:row-reverse; }
.service-block img { 
    flex:1; 
    max-width:500px; 
    border-radius:12px;
    box-shadow:0 10px 40px rgba(0,0,0,0.1);
}
.service-block .content { flex:1; }
.service-block h2 { 
    font-size:32px; 
    margin-bottom:20px; 
    color:var(--text);
}
.service-block h2 span { color:var(--blue); }
.service-block p { 
    color:var(--text-gray); 
    margin-bottom:20px;
    font-size:16px;
}
.service-list { margin:20px 0; }
.service-list li { 
    padding:10px 0; 
    padding-left:25px; 
    position:relative;
    font-size:15px;
}
.service-list li::before {
    content:'✓';
    position:absolute;
    left:0;
    color:var(--blue);
    font-weight:bold;
}

/* 案例展示 */
.cases-grid { 
    display:grid; 
    grid-template-columns:repeat(auto-fill,minmax(350px,1fr)); 
    gap:30px; 
}
.case-card { 
    background:var(--white); 
    border-radius:12px; 
    overflow:hidden; 
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    transition:transform 0.3s, box-shadow 0.3s;
}
.case-card:hover { 
    transform:translateY(-8px); 
    box-shadow:0 15px 40px rgba(0,0,0,0.15);
}
.case-card img { 
    width:100%; 
    height:250px; 
    object-fit:cover; 
}
.case-card .info { padding:20px; }
.case-card .tag { 
    display:inline-block; 
    padding:4px 12px; 
    background:var(--blue); 
    color:var(--white); 
    border-radius:20px; 
    font-size:12px; 
    margin-bottom:10px;
}
.case-card h3 { 
    font-size:18px; 
    margin-bottom:8px; 
}
.case-card p { 
    color:var(--text-gray); 
    font-size:14px; 
}

/* 案例筛选 */
.filter-bar { 
    display:flex; 
    justify-content:center; 
    gap:15px; 
    margin-bottom:40px; 
    flex-wrap:wrap;
}
.filter-btn { 
    padding:10px 24px; 
    border:2px solid var(--blue); 
    background:transparent; 
    color:var(--blue); 
    border-radius:25px; 
    cursor:pointer;
    font-size:14px;
    transition:all 0.3s;
}
.filter-btn:hover, .filter-btn.active { 
    background:var(--blue); 
    color:var(--white); 
}

/* 文章列表 */
.articles-grid { 
    display:grid; 
    grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); 
    gap:30px; 
}
.article-card { 
    background:var(--white); 
    border-radius:12px; 
    overflow:hidden; 
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    transition:transform 0.3s;
}
.article-card:hover { transform:translateY(-5px); }
.article-card img { 
    width:100%; 
    height:200px; 
    object-fit:cover; 
}
.article-card .info { padding:20px; }
.article-card .date { 
    font-size:12px; 
    color:var(--text-light); 
    margin-bottom:8px; 
}
.article-card h3 { 
    font-size:17px; 
    margin-bottom:10px;
    line-height:1.4;
}
.article-card p { 
    color:var(--text-gray); 
    font-size:14px; 
    line-height:1.6;
}
.article-card a:hover { color:var(--blue); }

/* CTA区域 */
.cta-section { 
    background:linear-gradient(135deg,var(--blue) 0%,var(--blue-dark) 100%); 
    padding:60px 0; 
    text-align:center; 
    color:var(--white); 
}
.cta-section h2 { 
    font-size:32px; 
    margin-bottom:20px; 
}
.cta-phone { 
    display:inline-block; 
    font-size:28px; 
    font-weight:bold; 
    color:var(--orange); 
    background:var(--white); 
    padding:15px 40px; 
    border-radius:50px;
    margin-bottom:30px;
}
.cta-phone:hover { background:var(--bg-light); }
.cta-features { 
    display:flex; 
    justify-content:center; 
    gap:40px; 
    flex-wrap:wrap; 
}
.cta-item { text-align:center; }
.cta-item strong { 
    display:block; 
    font-size:18px; 
    margin-bottom:5px; 
}
.cta-item span { 
    font-size:14px; 
    opacity:0.8; 
}

/* 页脚 */
.footer { 
    background:#1a1a1a; 
    color:#ccc; 
    padding:60px 0 30px; 
}
.footer-grid { 
    display:grid; 
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); 
    gap:40px; 
    margin-bottom:40px; 
}
.footer-col h3 { 
    color:var(--white); 
    font-size:18px; 
    margin-bottom:15px; 
}
.footer-col h4 { 
    color:var(--white); 
    font-size:16px; 
    margin-bottom:15px; 
}
.footer-col p { 
    font-size:14px; 
    line-height:1.8; 
    margin-bottom:8px; 
}
.footer-col a { 
    display:block; 
    font-size:14px; 
    padding:5px 0;
    transition:color 0.3s;
}
.footer-col a:hover { color:var(--orange); }
.copyright { 
    text-align:center; 
    padding-top:30px; 
    border-top:1px solid #333; 
    font-size:14px; 
    color:#999; 
}

/* 悬浮电话 */
.float-phone { 
    position:fixed; 
    right:20px; 
    bottom:100px; 
    width:56px; 
    height:56px; 
    background:var(--orange); 
    color:var(--white); 
    border-radius:50%; 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    font-size:28px;
    box-shadow:0 4px 15px rgba(255,107,0,0.4);
    z-index:999;
    animation:pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { transform:scale(1); }
    50% { transform:scale(1.1); }
}

/* 移动端底部栏 */
.mobile-bar { 
    display:none; 
    position:fixed; 
    bottom:0; 
    left:0; 
    right:0; 
    background:var(--orange); 
    z-index:1000;
}
.mobile-bar a { 
    display:block; 
    text-align:center; 
    padding:15px; 
    color:var(--white); 
    font-size:16px; 
    font-weight:bold;
}

/* 关于我们页面 */
.about-content { 
    display:flex; 
    gap:60px; 
    align-items:center; 
    padding:60px 0;
}
.about-content img { 
    flex:1; 
    max-width:500px; 
    border-radius:12px; 
}
.about-content .text { flex:1; }
.about-content h2 { 
    font-size:32px; 
    margin-bottom:20px; 
}
.about-content p { 
    color:var(--text-gray); 
    margin-bottom:15px;
    font-size:16px;
    line-height:1.8;
}
.team-section { 
    background:var(--bg-light); 
    padding:60px 0; 
}
.team-grid { 
    display:grid; 
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); 
    gap:30px; 
    margin-top:40px; 
}
.team-card { 
    background:var(--white); 
    padding:30px; 
    border-radius:12px; 
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.05);
}
.team-card .icon { 
    font-size:48px; 
    margin-bottom:15px; 
}
.team-card h3 { font-size:18px; margin-bottom:8px; }
.team-card p { color:var(--text-gray); font-size:14px; }

/* 联系方式 */
.contact-section { padding:60px 0; }
.contact-grid { 
    display:grid; 
    grid-template-columns:1fr 1fr; 
    gap:60px; 
}
.contact-info h3 { font-size:24px; margin-bottom:20px; }
.contact-item { 
    display:flex; 
    align-items:flex-start; 
    gap:15px; 
    margin-bottom:25px; 
}
.contact-item .icon { 
    font-size:24px; 
    flex-shrink:0;
}
.contact-item h4 { font-size:16px; margin-bottom:5px; }
.contact-item p { color:var(--text-gray); font-size:14px; }
.contact-form { 
    background:var(--bg-light); 
    padding:40px; 
    border-radius:12px; 
}
.form-group { margin-bottom:20px; }
.form-group label { 
    display:block; 
    margin-bottom:8px; 
    font-weight:500; 
}
.form-group input, .form-group textarea { 
    width:100%; 
    padding:12px 15px; 
    border:1px solid #ddd; 
    border-radius:8px; 
    font-size:14px;
    font-family:inherit;
}
.form-group textarea { height:120px; resize:vertical; }
.form-group input:focus, .form-group textarea:focus { 
    outline:none; 
    border-color:var(--blue); 
}

/* 视频页面 */
.video-grid { 
    display:grid; 
    grid-template-columns:repeat(auto-fill,minmax(350px,1fr)); 
    gap:30px; 
}
.video-card { 
    background:var(--white); 
    border-radius:12px; 
    overflow:hidden; 
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
}
.video-card img { 
    width:100%; 
    height:220px; 
    object-fit:cover; 
}
.video-card .info { padding:20px; }
.video-card h3 { font-size:17px; margin-bottom:8px; }
.video-card p { color:var(--text-gray); font-size:14px; }

/* 详情页 */
.detail-content { 
    padding:60px 0; 
    max-width:900px; 
    margin:0 auto; 
}
.detail-content h1 { 
    font-size:32px; 
    margin-bottom:20px; 
}
.detail-content .meta { 
    color:var(--text-light); 
    font-size:14px; 
    margin-bottom:30px;
    padding-bottom:20px;
    border-bottom:1px solid #eee;
}
.detail-content .content { 
    font-size:16px; 
    line-height:2; 
}
.detail-content .content p { margin-bottom:20px; }
.detail-content .content img { 
    max-width:100%; 
    margin:20px 0; 
    border-radius:8px; 
}

/* 响应式 */
@media (max-width:992px) {
    .service-block { flex-direction:column !important; gap:30px; }
    .service-block img { max-width:100%; }
    .contact-grid { grid-template-columns:1fr; }
    .about-content { flex-direction:column; }
}

@media (max-width:768px) {
    .nav { 
        display:none; 
        position:absolute; 
        top:68px; 
        left:0; 
        right:0; 
        background:var(--blue); 
        flex-direction:column; 
        padding:20px;
        gap:10px;
    }
    .nav.show { display:flex; }
    .menu-toggle { display:block; }
    .header-phone { display:none; }
    .banner-title { font-size:32px; }
    .banner-subtitle { font-size:16px; }
    .section { padding:50px 0; }
    .section-title h2 { font-size:28px; }
    .process { flex-direction:column; }
    .data-grid { gap:20px; }
    .data-item .num { font-size:36px; }
    .cases-grid, .articles-grid, .video-grid { 
        grid-template-columns:1fr; 
    }
    .page-banner { height:200px; }
    .page-banner-text h1 { font-size:28px; }
    .float-phone { bottom:80px; right:15px; }
    .mobile-bar { display:block; }
    body { padding-bottom:60px; }
    .cta-features { flex-direction:column; gap:20px; }
}

/* ========================================
   新增样式 - Logo、微信二维码、导航布局
   ======================================== */

/* Logo图片样式 */
.logo-img {
    height: 42px;
    border-radius: 4px;
    vertical-align: middle;
}

/* 导航栏布局优化 */
.header-inner {
    display: flex;
    align-items: center;
    height: 68px;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    gap: 20px;
    margin: 0 auto;
}

.nav a {
    color: var(--white);
    font-size: 14px;
    padding: 5px 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s;
}

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

/* 电话区域 */
.header-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-phone {
    background: var(--orange);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 14px;
}

.header-phone:hover {
    background: #e55a00;
}

.header-phone-landline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    white-space: nowrap;
}

/* 页脚微信二维码 */
.footer-wechat {
    text-align: center;
}

.footer-wechat-qr {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 悬浮按钮组 */
.float-buttons {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-phone {
    width: 56px;
    height: 56px;
    background: var(--orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    animation: pulse 2s infinite;
    text-decoration: none;
}

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

/* 微信悬浮按钮 */
.float-wechat-wrapper {
    position: relative;
}

.float-wechat {
    width: 56px;
    height: 56px;
    background: #07c160;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.4);
    cursor: pointer;
    border: none;
    animation: pulse-green 2s infinite;
}

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

/* 微信二维码展开 */
.float-wechat-qr {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: none;
    text-align: center;
    min-width: 160px;
}

.float-wechat-qr img {
    width: 130px;
    height: 130px;
    border-radius: 8px;
}

.float-wechat-qr p {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.float-wechat-wrapper:hover .float-wechat-qr {
    display: block;
}
