/* ============================================================
   拉面网站前台样式 ramen.css
   ============================================================ */

:root {
    --r-primary: #b03a2e;
    --r-dark: #2b1d16;
    --r-light: #f7f2ec;
}

html, body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body {
    color: #333;
    background: #fff;
}

a { color: var(--r-primary); }
a:hover { color: #d9534f; }

/* ---------- 导航 ---------- */
.r-nav {
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 1px 8px rgba(0, 0, 0, .08);
    border: none;
    margin-bottom: 0;
    min-height: 70px;
}
.r-nav .navbar-brand {
    height: 70px;
    line-height: 40px;
    font-size: 22px;
    font-weight: 700;
    color: var(--r-primary);
    letter-spacing: 1px;
}
.r-nav .navbar-brand i { margin-right: 6px; }
.r-nav .navbar-nav > li > a {
    height: 70px;
    line-height: 40px;
    font-size: 16px;
    color: #444;
    padding-top: 0;
    padding-bottom: 0;
}
.r-nav .navbar-nav > li > a:hover,
.r-nav .navbar-nav > li.active > a {
    color: var(--r-primary);
    background: transparent;
    border-bottom: 3px solid var(--r-primary);
}
.r-nav .navbar-toggle { margin-top: 18px; border-color: #ddd; }
.r-nav .navbar-toggle .icon-bar { background: #666; }

@media (max-width: 767px) {
    .r-nav .navbar-nav > li > a { height: 50px; line-height: 50px; border-bottom: none; }
}

/* ---------- 首页 Hero ---------- */
.r-hero {
    position: relative;
    min-height: 520px;
    background: url('/uploads/ramen/hero.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 70px;
}
.r-hero::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(20, 12, 8, .55);
}
.r-hero .container { position: relative; z-index: 2; color: #fff; padding: 80px 15px; }
.r-hero h1 {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 18px;
}
.r-hero p.lead {
    font-size: 18px;
    opacity: .92;
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.9;
}
.r-hero .btn {
    padding: 12px 36px;
    font-size: 16px;
    border-radius: 0;
    letter-spacing: 2px;
    margin: 0 6px;
}
.r-hero .btn-primary { background: var(--r-primary); border-color: var(--r-primary); }
.r-hero .btn-primary:hover { background: #c9483b; }
.r-hero .btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .8);
    color: #fff;
}
.r-hero .btn-outline:hover { background: rgba(255, 255, 255, .15); color: #fff; }

/* ---------- 子页 Banner ---------- */
.r-banner {
    margin-top: 70px;
    background: var(--r-dark) url('/uploads/ramen/hero.jpg') center center / cover no-repeat;
    position: relative;
    text-align: center;
    color: #fff;
    padding: 70px 15px;
}
.r-banner::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(20, 12, 8, .6);
}
.r-banner .container { position: relative; z-index: 2; }
.r-banner h1 { font-size: 34px; font-weight: 700; letter-spacing: 4px; margin: 0 0 10px; }
.r-banner p { opacity: .85; margin: 0; letter-spacing: 2px; }

/* ---------- 通用 Section ---------- */
.r-section { padding: 70px 0; }
.r-section.gray { background: var(--r-light); }
.r-section-title { text-align: center; margin-bottom: 50px; }
.r-section-title h2 { font-size: 30px; font-weight: 700; letter-spacing: 3px; color: var(--r-dark); margin: 0 0 12px; }
.r-section-title h2 i { color: var(--r-primary); margin-right: 8px; }
.r-section-title .line { width: 56px; height: 3px; background: var(--r-primary); margin: 0 auto 14px; }
.r-section-title p { color: #888; letter-spacing: 1px; margin: 0; }

/* ---------- 数字条 ---------- */
.r-stats { background: var(--r-primary); color: #fff; padding: 34px 0; }
.r-stats .num { font-size: 34px; font-weight: 700; }
.r-stats .num small { font-size: 15px; font-weight: 400; margin-left: 4px; }
.r-stats .txt { opacity: .9; letter-spacing: 2px; margin-top: 4px; }

/* ---------- 卡片 ---------- */
.r-card {
    background: #fff;
    border: 1px solid #eee;
    text-align: center;
    padding: 38px 24px;
    transition: all .3s;
    margin-bottom: 30px;
}
.r-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .1); transform: translateY(-4px); border-color: transparent; }
.r-card .icon {
    width: 72px; height: 72px;
    line-height: 72px;
    border-radius: 50%;
    background: #fdeeec;
    color: var(--r-primary);
    font-size: 30px;
    margin: 0 auto 20px;
}
.r-card h3 { font-size: 20px; font-weight: 700; letter-spacing: 2px; margin: 0 0 12px; color: var(--r-dark); }
.r-card p { color: #777; line-height: 1.9; margin: 0; }

/* ---------- 招牌风味 ---------- */
.r-dish { position: relative; overflow: hidden; margin-bottom: 30px; }
.r-dish img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform .5s; }
.r-dish:hover img { transform: scale(1.06); }
.r-dish .caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(20, 12, 8, .85));
    color: #fff;
    padding: 46px 20px 16px;
}
.r-dish .caption h4 { margin: 0; font-size: 18px; letter-spacing: 2px; }
.r-dish .caption p { margin: 2px 0 0; font-size: 13px; opacity: .85; }

/* ---------- 新闻卡片 ---------- */
.r-news-item {
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 30px;
    transition: all .3s;
    display: block;
    color: inherit;
}
.r-news-item:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .1); text-decoration: none; transform: translateY(-4px); }
.r-news-item .img-wrap { height: 190px; overflow: hidden; background: #eee; }
.r-news-item img { width: 100%; height: 100%; object-fit: cover; }
.r-news-item .body { padding: 18px 20px 22px; }
.r-news-item .date { font-size: 13px; color: #aaa; }
.r-news-item h4 { font-size: 17px; color: var(--r-dark); margin: 6px 0 8px; font-weight: 700; line-height: 1.5; }
.r-news-item p.desc { font-size: 13px; color: #888; line-height: 1.8; margin: 0 0 10px; }
.r-news-item .more { color: var(--r-primary); font-size: 13px; letter-spacing: 1px; }

/* ---------- 新闻分页 ---------- */
.r-pagination { text-align: center; }
.r-pagination .pagination { margin: 20px 0 0; }
.r-pagination .pagination > li > a { color: var(--r-primary); border-radius: 0; }
.r-pagination .pagination > .active > a { background: var(--r-primary); border-color: var(--r-primary); }

/* ---------- CTA ---------- */
.r-cta { background: var(--r-dark); color: #fff; padding: 50px 0; text-align: center; }
.r-cta h3 { letter-spacing: 2px; margin: 0 0 14px; }
.r-cta p { opacity: .8; margin: 0 0 22px; }
.r-cta .btn { padding: 10px 32px; border-radius: 0; background: var(--r-primary); border-color: var(--r-primary); letter-spacing: 2px; }

/* ---------- 文章页 ---------- */
.r-article {
    background: #fff;
    max-width: 860px;
    margin: 0 auto;
    padding: 40px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
}
.r-article h1.title { font-size: 26px; font-weight: 700; color: var(--r-dark); margin: 0 0 12px; line-height: 1.6; }
.r-article .meta { color: #999; font-size: 14px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px dashed #e5e5e5; }
.r-article .cover { width: 100%; max-height: 400px; object-fit: cover; margin-bottom: 24px; }
.r-article .content { line-height: 2; font-size: 15px; color: #444; word-wrap: break-word; }
.r-article .content h2 { font-size: 20px; color: var(--r-dark); border-left: 4px solid var(--r-primary); padding-left: 12px; margin: 26px 0 14px; }
.r-article .content h3 { font-size: 17px; color: var(--r-dark); margin: 22px 0 10px; }
.r-article .content img { max-width: 100%; height: auto; }
.r-article .nav-prev-next { margin-top: 34px; padding-top: 20px; border-top: 1px solid #eee; }
.r-article .nav-prev-next a { color: #666; text-decoration: none; display: inline-block; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.r-article .nav-prev-next a:hover { color: var(--r-primary); }

/* ---------- 关于拉面页 ---------- */
.r-about-wrap { padding: 50px 0 70px; }
.r-about-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 4px; margin-bottom: 34px; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.r-about-content { max-width: 860px; margin: 0 auto; background: #fff; padding: 40px; box-shadow: 0 4px 18px rgba(0, 0, 0, .06); line-height: 2; font-size: 15px; color: #444; word-wrap: break-word; }
.r-about-content h2 { font-size: 22px; color: var(--r-dark); border-left: 4px solid var(--r-primary); padding-left: 12px; margin: 28px 0 14px; }
.r-about-content h3 { font-size: 18px; color: var(--r-dark); margin: 22px 0 10px; }
.r-about-content img { max-width: 100%; height: auto; }

/* ---------- 联系我们 ---------- */
.r-contact-item { text-align: center; padding: 34px 20px; background: #fff; border: 1px solid #eee; margin-bottom: 30px; }
.r-contact-item .icon { width: 64px; height: 64px; line-height: 64px; border-radius: 50%; background: #fdeeec; color: var(--r-primary); font-size: 26px; margin: 0 auto 16px; }
.r-contact-item h4 { font-size: 17px; font-weight: 700; color: var(--r-dark); letter-spacing: 1px; margin: 0 0 8px; }
.r-contact-item p { color: #777; line-height: 1.9; margin: 0; }

/* ---------- 页脚 ---------- */
.r-footer { background: #221611; color: rgba(255, 255, 255, .75); padding: 46px 0 0; }
.r-footer h5 { color: #fff; letter-spacing: 2px; font-weight: 700; margin: 0 0 16px; }
.r-footer ul { list-style: none; padding: 0; margin: 0; }
.r-footer ul li { margin-bottom: 8px; }
.r-footer ul li a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.r-footer ul li a:hover { color: #fff; }
.r-footer .brand { font-size: 20px; color: #fff; font-weight: 700; letter-spacing: 1px; }
.r-footer .brand i { color: var(--r-primary); margin-right: 6px; }
.r-footer .copyright { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 34px; padding: 18px 0; text-align: center; font-size: 13px; }
.r-footer .copyright a { color: rgba(255, 255, 255, .6); }
