:root {
    --primary: #0a2540;
    --accent: #c5a059;
    --text: #333;
    --light: #f4f7f9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', "Microsoft YaHei", sans-serif; color: var(--text); line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header & Nav */
/* 确保容器是弹性布局 */
.navbar .container {
    display: flex;             /* 开启弹性布局 */
    justify-content: space-between; /* 左右两端对齐 */
    align-items: center;       /* 垂直方向居中对齐 */
    height: 70px;              /* 设置一个固定高度 */
}

/* 确保 logo 不会自动换行 */
.logo {
    white-space: nowrap;       /* 强制文字不换行 */
    flex-shrink: 0;            /* 防止 logo 被挤压 */
}

/* 确保导航菜单是横向排列的 */
.nav-menu {
    display: flex;             /* 菜单内部也开启弹性布局 */
    list-style: none;          /* 去掉圆点 */
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 25px;         /* 调整选项之间的间距 */
    white-space: nowrap;       /* 确保文字不换行 */
}

.hero { background: var(--primary); color: #fff; padding: 100px 0; text-align: center; }
.hero h1 { font-size: 3rem; margin-bottom: 15px; }

/* Sections */
.section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 10px; color: var(--primary); }
.section-subtitle { text-align: center; margin-bottom: 50px; color: #666; }
.bg-light { background: var(--light); }

/* Service Boxes */
.service-split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.service-box { background: #fff; padding: 40px; border-radius: 12px; border: 1px solid #eee; }
.featured { border: 2px solid var(--accent); background: #fffdf8; }
.service-box h3 { margin-bottom: 20px; color: var(--primary); }
.service-box ul { list-style: none; }
.service-box li { margin-bottom: 15px; position: relative; padding-left: 25px; }
.service-box li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

.output-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #ddd; }
.output-item span { font-weight: bold; color: var(--primary); }

/* DIY Market */
.diy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.diy-category { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.diy-category h4 { margin-bottom: 20px; color: var(--accent); font-size: 1.2rem; border-bottom: 2px solid var(--accent); display: inline-block; }
.diy-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f0f0f0; transition: 0.3s; cursor: pointer; }
.diy-item:hover { background: #fffcf0; padding-left: 5px; }
.diy-item span { font-weight: bold; color: #d9534f; }
.highlight { border-left: 4px solid var(--accent); padding-left: 10px; }

/* Timeline */
.timeline-box { background: var(--primary); color: #fff; padding: 40px; border-radius: 12px; display: flex; justify-content: space-around; }

/* Footer & Button */
.footer { text-align: center; padding: 60px 0; background: #eee; }
.btn-main { background: var(--accent); color: white; padding: 15px 40px; border: none; border-radius: 30px; cursor: pointer; font-size: 1.1rem; margin-top: 20px; }

/* Modal */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; }
.modal-content { background: white; width: 300px; margin: 10% auto; padding: 40px; text-align: center; border-radius: 10px; position: relative; }
.close { position: absolute; right: 20px; top: 10px; font-size: 24px; cursor: pointer; }
.modal-content {
    background: white;
    width: 320px;
    margin: 10% auto;
    padding: 40px;
    border-radius: 12px;
    position: relative;

    /* 添加以下代码 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 水平居中 */
    text-align: center;
}

.modal-content img {
    width: 200px; /* 或者按需设置宽度 */
    margin-top: 15px;
    display: block;
}
.brand-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0a2540;
    /* 给 Get 首字母或部分单词加一个底纹或特殊色 */
    position: relative;
}

/* 装饰性小细节：在品牌名下方加一个小横条 */
.brand-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #c5a059; /* 金色点缀 */
}

.brand-tag {
    background: #f0f4f8;      /* 给副标题加个浅色底色 */
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 0.9rem;
    color: #0a2540;
    font-weight: 600;
}