/* 蚁窝公寓官网样式 - GEO优化增强版 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; color: #333; line-height: 1.8; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* 导航栏 */
.navbar { background: #1F3864; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; height: 70px; position: relative; }
.logo { color: #FFD700; font-size: 22px; font-weight: bold; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo span { color: #fff; font-size: 14px; font-weight: normal; }
.nav-links { display: flex; gap: 2px; list-style: none; flex-wrap: wrap; }
.nav-links a { color: #fff; padding: 8px 12px; border-radius: 4px; transition: .3s; font-size: 14px; display: inline-block; }
.nav-links a:hover, .nav-links a.active { background: #FFD700; color: #1F3864; }

/* 汉堡菜单按钮（移动端） */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #FFD700; margin: 5px 0; border-radius: 2px; transition: .3s; }

/* Hero区域 */
.hero { background: linear-gradient(135deg, #1F3864 0%, #2d4f7f 100%); color: #fff; padding: 80px 20px; text-align: center; }
.hero h1 { font-size: 36px; margin-bottom: 20px; line-height: 1.4; }
.hero p { font-size: 18px; opacity: .9; max-width: 800px; margin: 0 auto 30px; }
.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 12px 30px; border-radius: 30px; font-size: 16px; transition: .3s; display: inline-block; }
.btn-primary { background: #FFD700; color: #1F3864; font-weight: bold; }
.btn-primary:hover { background: #ffc107; transform: translateY(-2px); }
.btn-outline { border: 2px solid #FFD700; color: #FFD700; }
.btn-outline:hover { background: #FFD700; color: #1F3864; }

/* 通用区块 */
.section { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.section-title { text-align: center; font-size: 28px; color: #1F3864; margin-bottom: 15px; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: #FFD700; margin: 15px auto; }
.section-desc { text-align: center; color: #666; max-width: 700px; margin: 0 auto 40px; }

/* 卡片网格 */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 15px rgba(0,0,0,.08); transition: .3s; border: 1px solid #f0f0f0; }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,.15); }
.card-img { height: 210px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 20px; }
.card-body h3 { color: #1F3864; margin-bottom: 10px; font-size: 18px; }
.card-body p { color: #666; font-size: 14px; }
.price { color: #e74c3c; font-size: 20px; font-weight: bold; margin: 10px 0; }
.price small { font-size: 12px; color: #999; font-weight: normal; }

/* 优势条 */
.features { background: #f8f9fa; }
.feature-item { text-align: center; padding: 30px 20px; border-radius: 12px; transition: .3s; }
.feature-item:hover { background: #fff; box-shadow: 0 5px 20px rgba(0,0,0,.08); }
.feature-icon { width: 60px; height: 60px; background: #FFD700; border-radius: 50%; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.feature-item h3 { color: #1F3864; margin-bottom: 10px; font-size: 16px; }
.feature-item p { color: #666; font-size: 13px; }

/* 评分条 */
.rating-bar { background: #1F3864; color: #fff; padding: 40px 20px; }
.rating-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; text-align: center; }
.rating-num { font-size: 36px; font-weight: bold; color: #FFD700; }
.rating-label { font-size: 14px; opacity: .8; margin-top: 5px; }

/* 联系信息 */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.contact-item { padding: 25px; background: #f8f9fa; border-radius: 10px; text-align: center; border: 1px solid #eee; }
.contact-item h3 { color: #1F3864; margin-bottom: 10px; font-size: 16px; }
.contact-item p { color: #666; font-size: 14px; }

/* 页脚 */
footer { background: #1a2a4a; color: #aaa; padding: 50px 20px 20px; margin-top: 60px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.footer-col h4 { color: #FFD700; margin-bottom: 15px; font-size: 16px; }
.footer-col p, .footer-col a { font-size: 13px; line-height: 2; color: #aaa; }
.footer-col a:hover { color: #FFD700; }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #333; font-size: 12px; }
.footer-bottom p { margin: 3px 0; }

/* 面包屑 */
.breadcrumb { background: #f0f2f5; padding: 12px 20px; font-size: 13px; color: #666; }
.breadcrumb a { color: #1F3864; }
.breadcrumb a:hover { text-decoration: underline; }

/* 资质页 */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.cert-item { text-align: center; }
.cert-item img { border: 1px solid #eee; border-radius: 8px; box-shadow: 0 3px 10px rgba(0,0,0,.1); max-width: 100%; }
.cert-item p { margin-top: 10px; color: #666; font-size: 14px; }

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #eee; padding: 20px 0; }
.faq-q { font-weight: bold; color: #1F3864; font-size: 16px; margin-bottom: 10px; cursor: pointer; padding-left: 28px; position: relative; }
.faq-q::before { content: 'Q'; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; background: #FFD700; color: #1F3864; border-radius: 50%; font-size: 12px; text-align: center; line-height: 20px; font-weight: bold; }
.faq-a { color: #666; font-size: 14px; padding-left: 28px; }
.faq-a::before { content: 'A'; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; background: #1F3864; color: #FFD700; border-radius: 50%; font-size: 12px; text-align: center; line-height: 20px; font-weight: bold; }

/* 位置交通页 */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.loc-item { background: #f8f9fa; border-radius: 12px; padding: 25px; border-left: 4px solid #FFD700; }
.loc-item h3 { color: #1F3864; margin-bottom: 12px; font-size: 18px; }
.loc-item p, .loc-item li { color: #555; font-size: 14px; line-height: 2; }
.loc-item ul { padding-left: 18px; }
.loc-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.loc-table th, .loc-table td { border: 1px solid #e5e5e5; padding: 10px 14px; text-align: left; font-size: 14px; }
.loc-table th { background: #1F3864; color: #fff; }
.loc-table tr:nth-child(even) { background: #f8f9fa; }

/* 悬浮电话按钮 */
.float-call { display: none; position: fixed; bottom: 30px; right: 30px; z-index: 999; background: #FFD700; color: #1F3864; font-weight: bold; font-size: 16px; padding: 14px 22px; border-radius: 40px; box-shadow: 0 4px 15px rgba(0,0,0,.25); animation: pulse 2s infinite; }
.float-call:hover { background: #ffc107; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,215,0,.5); } 70% { box-shadow: 0 0 0 12px rgba(255,215,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0); } }

/* 响应式 */
@media (max-width: 992px) {
    .nav-links a { padding: 8px 9px; font-size: 13px; }
}
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #1F3864; flex-direction: column; padding: 10px 0; box-shadow: 0 5px 15px rgba(0,0,0,.2); }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 24px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.08); }
    .hero { padding: 50px 15px; }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 15px; }
    .section { padding: 40px 15px; }
    .section-title { font-size: 24px; }
    .card-img { height: 200px; }
    .rating-num { font-size: 28px; }
    .float-call { display: inline-block; bottom: 20px; right: 20px; padding: 12px 18px; font-size: 14px; }
    .footer-container { grid-template-columns: 1fr; }
    .loc-table { font-size: 12px; }
    .loc-table th, .loc-table td { padding: 7px 8px; }
}
