/* ===== 昆明奥宝专修连锁官网 - 高端大气风格 ===== */

/* --- 基础重置 --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333; background: #fff; line-height: 1.6; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color 0.3s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- 配色变量 --- */
:root {
    --gold: #c9a96e;
    --gold-light: #e0c992;
    --dark: #1a1a2e;
    --dark2: #16213e;
    --dark3: #0f3460;
    --white: #ffffff;
    --gray: #f5f5f5;
    --gray2: #e8e8e8;
    --text: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
}

/* --- 导航栏 --- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 60px; height: 80px;
    background: transparent; transition: all 0.4s ease;
}
.navbar.scrolled {
    background: rgba(26, 26, 46, 0.97);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    height: 70px;
}
.navbar .logo {
    display: flex; align-items: center; gap: 12px;
}
.navbar .logo img { height: 45px; }
.navbar .logo-text {
    font-size: 22px; font-weight: 700; color: var(--gold);
    letter-spacing: 2px;
}
.navbar .logo-sub {
    font-size: 12px; color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
}
.navbar .nav-links {
    display: flex; gap: 40px;
}
.navbar .nav-links a {
    color: rgba(255,255,255,0.85); font-size: 15px; font-weight: 500;
    letter-spacing: 1px; position: relative; padding: 8px 0;
    transition: color 0.3s;
}
.navbar .nav-links a:hover,
.navbar .nav-links a.active { color: var(--gold); }
.navbar .nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
    background: var(--gold); transition: all 0.3s; transform: translateX(-50%);
}
.navbar .nav-links a:hover::after,
.navbar .nav-links a.active::after { width: 100%; }

.navbar .nav-phone {
    display: flex; align-items: center; gap: 8px;
    color: var(--gold); font-size: 16px; font-weight: 600;
}
.navbar .nav-phone svg { width: 18px; height: 18px; fill: var(--gold); }

/* 移动端菜单按钮 */
.menu-toggle {
    display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px;
}
.menu-toggle span {
    width: 25px; height: 2px; background: var(--gold); transition: all 0.3s;
}

/* --- Hero Banner --- */
.hero {
    position: relative; height: 100vh; min-height: 600px;
    background: var(--dark);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
/* 背景幻灯片 */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
/* 遮罩层 */
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.55) 100%);
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    animation: fadeInUp 1s ease-out;
}
.hero-badge {
    display: inline-block; padding: 8px 24px; margin-bottom: 24px;
    border: 1px solid var(--gold); border-radius: 30px;
    color: var(--gold); font-size: 14px; letter-spacing: 3px;
    text-transform: uppercase;
}
.hero h1 {
    font-size: 56px; font-weight: 800; color: var(--white);
    letter-spacing: 6px; margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero h1 span { color: var(--gold); }
.hero .hero-sub {
    font-size: 20px; color: rgba(255,255,255,0.7);
    letter-spacing: 4px; margin-bottom: 40px;
}
.hero .hero-stats {
    display: flex; gap: 60px; justify-content: center; margin-top: 50px;
}
.hero .hero-stats .stat {
    text-align: center;
}
.hero .hero-stats .stat-num {
    font-size: 42px; font-weight: 800; color: var(--gold);
    line-height: 1;
}
.hero .hero-stats .stat-num span { font-size: 18px; font-weight: 400; }
.hero .hero-stats .stat-label {
    font-size: 14px; color: rgba(255,255,255,0.5);
    margin-top: 8px; letter-spacing: 2px;
}
.hero-btns {
    /* display: flex; */
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
    align-content: center;
    flex-wrap: nowrap;
}
.btn-gold {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 2px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    margin: 0px 16px;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4);
}
.btn-outline {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    color: var(--white);
    font-size: 15px;
    letter-spacing: 2px;
    transition: all 0.3s;
    cursor: pointer;
    background: transparent;
}
.btn-outline:hover {
    border-color: var(--gold); color: var(--gold);
}

/* --- 通用区块 --- */
.section {
    padding: 100px 60px;
}
.section-header {
    text-align: center; margin-bottom: 60px;
}
.section-header .section-tag {
    display: inline-block; font-size: 13px; color: var(--gold);
    letter-spacing: 4px; text-transform: uppercase; margin-bottom: 12px;
}
.section-header h2 {
    font-size: 36px; font-weight: 700; color: var(--dark);
    letter-spacing: 3px; margin-bottom: 16px;
}
.section-header .divider {
    width: 60px; height: 3px; background: var(--gold);
    margin: 0 auto 16px;
}
.section-header p {
    font-size: 16px; color: var(--text-light); max-width: 600px; margin: 0 auto;
}

/* --- 关于我们 --- */
.about-section { background: var(--white); }
.about-content {
    display: flex; gap: 60px; align-items: center; max-width: 1200px; margin: 0 auto;
}
.about-image {
    flex: 0 0 400px; position: relative;
}
.about-image .img-main {
    width: 400px; height: 500px; border-radius: 8px;
    background: var(--dark2);
    position: relative; overflow: hidden;
}
.about-image .exp-badge {
    position: absolute; bottom: -20px; right: -20px;
    width: 120px; height: 120px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 8px 30px rgba(201, 169, 110, 0.3);
}
.about-image .exp-badge .num { font-size: 36px; font-weight: 800; color: var(--dark); line-height: 1; }
.about-image .exp-badge .txt { font-size: 12px; color: var(--dark); letter-spacing: 2px; }
.about-text { flex: 1; }
.about-text h3 {
    font-size: 28px; color: var(--dark); margin-bottom: 8px; letter-spacing: 2px;
}
.about-text .about-subtitle {
    font-size: 14px; color: var(--gold); letter-spacing: 3px; margin-bottom: 24px;
}
.about-text .about-desc {
    font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 30px;
}
.about-text .about-desc p { margin-bottom: 12px; }
.about-features {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.about-features .feat {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; background: var(--gray); border-radius: 8px;
    transition: all 0.3s;
}
.about-features .feat:hover {
    background: rgba(201, 169, 110, 0.1);
    transform: translateX(4px);
}
.about-features .feat .feat-icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex; align-items: center; justify-content: center;
    color: var(--dark); font-size: 16px; flex-shrink: 0;
}
.about-features .feat .feat-text {
    font-size: 14px; color: var(--text); font-weight: 500;
}

/* --- 服务介绍 --- */
.service-section {
    background: var(--gray);
}
.service-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
    max-width: 1200px; margin: 0 auto;
}
.service-card {
    background: var(--white); border-radius: 12px; padding: 40px 30px;
    text-align: center; transition: all 0.4s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0); transition: transform 0.4s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.service-card .card-icon {
    width: 70px; height: 70px; margin: 0 auto 20px;
    border-radius: 50%; background: linear-gradient(135deg, var(--dark), var(--dark2));
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 800; color: var(--gold);
}
.service-card h3 {
    font-size: 20px; color: var(--dark); margin-bottom: 8px; letter-spacing: 1px;
}
.service-card .card-sub {
    font-size: 13px; color: var(--gold); margin-bottom: 16px; letter-spacing: 1px;
}
.service-card .card-desc {
    font-size: 14px; color: var(--text-light); line-height: 1.7;
}

/* --- 服务项目 --- */
.items-section { background: var(--white); }
.items-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    max-width: 1200px; margin: 0 auto;
}
.item-card {
    position: relative; border-radius: 12px; overflow: hidden;
    height: 300px; cursor: pointer; group: true;
}
.item-card .item-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--dark), var(--dark2));
    transition: transform 0.5s;
}
.item-card:hover .item-bg { transform: scale(1.05); }
.item-card .item-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px; z-index: 2;
}
.item-card .item-overlay h4 {
    font-size: 20px; color: var(--white); margin-bottom: 8px; letter-spacing: 1px;
}
.item-card .item-overlay p {
    font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.6;
}
.item-card .item-num {
    position: absolute; top: 20px; left: 20px;
    font-size: 48px; font-weight: 800; color: rgba(201, 169, 110, 0.9);
    line-height: 1; z-index: 2;
}

/* --- 新闻区域 --- */
.news-section { background: var(--gray); }
.news-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
    max-width: 1200px; margin: 0 auto;
}
.news-card {
    background: var(--white); border-radius: 12px; overflow: hidden;
    transition: all 0.3s; box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.news-card .news-img {
    height: 200px; background: linear-gradient(135deg, var(--dark2), var(--dark3));
    display: flex; align-items: center; justify-content: center;
    color: rgba(201, 169, 110, 0.3); font-size: 48px;
}
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card .news-body { padding: 24px; }
.news-card .news-meta {
    display: flex; gap: 16px; margin-bottom: 12px;
}
.news-card .news-meta span {
    font-size: 12px; color: var(--text-lighter); letter-spacing: 1px;
}
.news-card .news-meta .cat {
    color: var(--gold); font-weight: 500;
}
.news-card h4 {
    font-size: 17px; color: var(--dark); margin-bottom: 8px;
    line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .news-summary {
    font-size: 14px; color: var(--text-light); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* --- 联系我们 --- */
.contact-section { background: var(--white); }
.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 24px;
    max-width: 1200px; margin: 0 auto;
}
.store-card {
    background: var(--gray); border-radius: 12px; padding: 30px;
    transition: all 0.3s; border: 1px solid transparent;
}
.store-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.15);
}
.store-card .store-name {
    font-size: 20px; font-weight: 700; color: var(--dark);
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.store-card .store-name::before {
    content: ''; width: 4px; height: 20px; background: var(--gold);
    border-radius: 2px;
}
.store-card .store-info { display: flex; flex-direction: column; gap: 10px; }
.store-card .store-info .info-row {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px; color: var(--text-light);
}
.store-card .store-info .info-row svg {
    width: 16px; height: 16px; fill: var(--gold); flex-shrink: 0; margin-top: 2px;
}

/* --- Footer --- */
.footer {
    background: var(--dark); padding: 60px 60px 30px; color: rgba(255,255,255,0.6);
}
.footer-content {
    display: flex; justify-content: space-between; gap: 40px;
    max-width: 1200px; margin: 0 auto; padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
    font-size: 16px; color: var(--gold); margin-bottom: 20px;
    letter-spacing: 2px;
}
.footer-col p, .footer-col a {
    font-size: 14px; color: rgba(255,255,255,0.5); line-height: 2;
    display: block;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    text-align: center; padding-top: 30px;
    max-width: 1200px; margin: 0 auto;
}
.footer-bottom p {
    font-size: 13px; color: rgba(255,255,255,0.3); letter-spacing: 1px;
}

/* --- 动画 --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1; transform: translateY(0);
}

/* --- 返回顶部 --- */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; transform: translateY(20px);
    transition: all 0.3s; box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; fill: var(--dark); }

/* --- 响应式 --- */
@media (max-width: 1024px) {
    .section { padding: 60px 30px; }
    .navbar { padding: 0 30px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .items-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .about-content { flex-direction: column; }
    .about-image { flex: none; width: 100%; margin-bottom: 30px; }
}
@media (max-width: 768px) {
    .navbar .nav-links,
    .navbar .nav-phone { display: none; }
    .menu-toggle { display: flex; }
    .navbar .logo-text { font-size: 18px; }
    .hero h1 { font-size: 32px; letter-spacing: 3px; }
    .hero .hero-sub { font-size: 16px; }
    .hero .hero-stats { flex-direction: column; gap: 20px; }
    .hero .hero-stats .stat-num { font-size: 32px; }
    .hero-btns { flex-direction: column; align-items: center; }
    .section-header h2 { font-size: 26px; }
    .service-grid { grid-template-columns: 1fr; }
    .items-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .about-image { width: 100%; margin-bottom: 30px; }
    .about-image .img-main { width: 100%; height: 300px; background-size: cover !important; background-position: center !important; }
    .about-features { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; }
    .footer { padding: 40px 30px 20px; }
}

/* 移动端菜单展开 */
.mobile-menu {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 26, 46, 0.98); z-index: 1001;
    flex-direction: column; align-items: center; justify-content: center; gap: 30px;
}
.mobile-menu.open { display: flex; }
body.menu-open .menu-toggle { display: none !important; }
.mobile-menu a {
    font-size: 20px; color: rgba(255,255,255,0.8); letter-spacing: 3px;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .close-menu {
    position: absolute; top: 20px; right: 30px;
    font-size: 30px; color: var(--gold); cursor: pointer;
    z-index: 1001; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
}
