/*!
 * Start Bootstrap - Landing Page Bootstrap Theme (http://startbootstrap.com)
 * Code licensed under the Apache License v2.0.
 * For details, see http://www.apache.org/licenses/LICENSE-2.0.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

body,
html {
    width: 100%;
    height: 100%;
}

body,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Lato","Helvetica Neue",Helvetica,Arial,sans-serif;
    font-weight: 700;
}

.lead {
    font-size: 18px;
    font-weight: 400;
}

.intro-header {
    margin-top: 50px; /* 导航栏高度偏移，让背景从导航栏下方开始 */
    padding-top: 80px; /* 增加padding确保内容不被遮挡 */
    padding-bottom: 50px;
    text-align: center;
    color: #f8f8f8;
    background: url(https://playdoll.oss-cn-wulanchabu.aliyuncs.com/web/girl.webp) no-repeat center center;
    background-size: cover;
    background-position: center center; /* 调整背景图片位置 */
}

.intro-message {
    position: relative;
    padding-top: 20%;
    padding-bottom: 20%;
}

.intro-message > h1 {
    margin: 0;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.6);
    font-size: 5em;
}

.intro-divider {
    width: 400px;
    border-top: 1px solid #f8f8f8;
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

.intro-message > h3 {
    text-shadow: 2px 2px 3px rgba(0,0,0,0.6);
}

@media(max-width:767px) {
    .intro-message {
        padding-bottom: 15%;
    }

    .intro-message > h1 {
        font-size: 3em;
    }

    ul.intro-social-buttons > li {
        display: block;
        margin-bottom: 20px;
        padding: 0;
    }

    ul.intro-social-buttons > li:last-child {
        margin-bottom: 0;
    }

    .intro-divider {
        width: 100%;
    }
}

.network-name {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
}

.content-section-a {
    padding: 50px 0;
    background-color: #f8f8f8;
}

.content-section-b {
    padding: 50px 0;
    border-top: 1px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading-spacer {
    float: left;
    width: 200px;
    border-top: 3px solid #e7e7e7;
}

.banner {
    padding: 100px 0;
    color: #f8f8f8;
    background: url(https://playdoll.oss-cn-wulanchabu.aliyuncs.com/web/banner-bg.webp) no-repeat center center;
    background-size: cover;
}

.banner h2 {
    margin: 0;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.6);
    font-size: 3em;
}

.banner ul {
    margin-bottom: 0;
}

.banner-social-buttons {
    float: right;
    margin-top: 0;
}

@media(max-width:1199px) {
    ul.banner-social-buttons {
        float: left;
        margin-top: 15px;
    }
}

@media(max-width:767px) {
    .banner h2 {
        margin: 0;
        text-shadow: 2px 2px 3px rgba(0,0,0,0.6);
        font-size: 3em;
    }

    ul.banner-social-buttons > li {
        display: block;
        margin-bottom: 20px;
        padding: 0;
    }

    ul.banner-social-buttons > li:last-child {
        margin-bottom: 0;
    }
}

footer {
    padding: 50px 0;
    background-color: #f8f8f8;
}

footer .container,
footer .row,
footer .col-lg-12 {
    text-align: center !important;
}
footer ul.list-inline {
    display: inline-block;
    float: none;
}
footer ul.list-inline > li {
    display: inline-block;
    float: none;
}
footer a, footer p, footer img {
    vertical-align: middle;
}

p.copyright {
    margin: 15px 0 0;
}

/* ========================================
   Mobile Responsive Enhancements
   ======================================== */

/* 超大屏幕 */
@media (min-width: 1200px) {
    .intro-message > h1 {
        font-size: 6em;
    }
    .intro-message > h3 {
        font-size: 2em;
    }
}

/* 平板设备 */
@media (max-width: 991px) {
    .navbar-header img {
        width: 45px !important;
    }
    
    .intro-header {
        margin-top: 50px;
    }
    
    .intro-message > h1 {
        font-size: 4em;
    }
    
    .intro-message > h3 {
        font-size: 1.5em;
    }
    
    .section-heading {
        font-size: 2em;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .section-heading-spacer {
        display: none;
    }
    
    .content-section-a,
    .content-section-b {
        padding: 30px 0;
    }
    
    .banner {
        padding: 60px 0;
    }
    
    .banner h2 {
        font-size: 2.5em;
        text-align: center;
    }
    
    .lead {
        font-size: 16px;
        text-align: center;
    }
}

/* 手机设备 */
@media (max-width: 767px) {
    .navbar-brand {
        font-size: 16px;
        padding: 15px 10px;
    }
    
    .navbar-header img {
        width: 35px !important;
    }
    
    .intro-header {
        margin-top: 50px;
        padding-top: 70px;
        padding-bottom: 30px;
    }
    
    .intro-message {
        padding-top: 10%;
        padding-bottom: 10%;
    }
    
    .intro-message > h1 {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
    
    .intro-message > h3 {
        font-size: 1.2em;
        margin-bottom: 20px;
    }
    
    .section-heading {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    .lead {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .content-section-a,
    .content-section-b {
        padding: 20px 0;
    }
    
    .banner {
        padding: 40px 0;
    }
    
    .banner h2 {
        font-size: 1.8em;
        line-height: 1.4;
    }
    
    .img-responsive {
        margin-bottom: 20px;
    }
    
    .copyright {
        font-size: 12px;
        text-align: center;
    }
    
    /* 社交按钮优化 */
    .intro-social-buttons .btn,
    .banner-social-buttons .btn {
        margin: 5px;
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .network-name {
        font-size: 12px;
    }
}

/* 小屏幕手机 */
@media (max-width: 480px) {
    .navbar-brand {
        font-size: 14px;
        padding: 15px 5px;
    }
    
    .intro-message > h1 {
        font-size: 2em;
    }
    
    .intro-message > h3 {
        font-size: 1em;
    }
    
    .section-heading {
        font-size: 1.5em;
    }
    
    .lead {
        font-size: 13px;
    }
    
    .banner h2 {
        font-size: 1.5em;
    }
    
    .intro-social-buttons .btn,
    .banner-social-buttons .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
        padding: 10px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* 横屏手机优化 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .intro-header {
        margin-top: 50px;
        padding-top: 60px;
        padding-bottom: 20px;
    }
    
    .intro-message {
        padding-top: 5%;
        padding-bottom: 5%;
    }
    
    .intro-message > h1 {
        font-size: 2em;
    }
    
    .intro-message > h3 {
        font-size: 1em;
    }
}

/* 触摸设备优化 */
@media (hover: none) {
    .btn:hover {
        transform: none;
    }
    
    a:hover {
        text-decoration: none;
    }
}

/* 高DPI设备优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .intro-header {
        background-attachment: scroll;
    }
}

/* 导航栏移动端优化 */
.navbar-nav {
    margin: 0;
}

.navbar-default {
    min-height: 50px;
    border: none;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e7e7e7;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    height: 50px;
    line-height: 30px;
}

.navbar-brand img {
    margin-right: 10px;
    vertical-align: middle;
}

.navbar-toggle {
    border-color: #337ab7;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
    background-color: #337ab7;
}

.navbar-toggle .icon-bar {
    background-color: #fff;
}

@media (max-width: 767px) {
    .navbar-collapse {
        border-top: 1px solid #e7e7e7;
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .navbar-nav > li > a {
        padding: 10px 15px;
        text-align: center;
    }
    
    .navbar-header {
        text-align: center;
    }
    
    .navbar-brand {
        float: none;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 15px;
    }
    
    .navbar-brand img {
        width: 35px !important;
        margin-right: 8px;
    }
    
    .navbar-toggle {
        position: absolute;
        right: 15px;
        top: 9px;
    }
}

/* 按钮和链接触摸优化 */
.btn,
a,
button {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.btn {
    min-height: 44px;
    min-width: 44px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn:active {
    transform: scale(0.95);
}

/* 文字选择优化 */
.intro-message h1,
.intro-message h3 {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 滚动优化 */
html {
    -webkit-overflow-scrolling: touch;
}

/* 加载性能优化 */
.img-responsive {
    will-change: transform;
}

/* 防止iOS safari的缩放 */
input,
textarea,
select {
    font-size: 16px !important;
}

/* 移动端表单优化 */
@media (max-width: 767px) {
    input,
    textarea,
    select {
        width: 100%;
        padding: 12px;
        border-radius: 4px;
        border: 1px solid #ddd;
    }
}

/* 最终移动端兼容性优化 */
/* 解决移动端点击延迟 */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* 移动端图片优化 */
@media (max-width: 767px) {
    .img-responsive {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto 20px;
    }
    
    /* 确保图片不会超出屏幕 */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* 移动端间距优化 */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .col-lg-5, .col-lg-6, .col-lg-12,
    .col-sm-6, .col-sm-push-6, .col-sm-pull-6 {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 320px) {
    .intro-message > h1 {
        font-size: 1.8em;
    }
    
    .intro-message > h3 {
        font-size: 0.9em;
    }
    
    .section-heading {
        font-size: 1.3em;
    }
    
    .lead {
        font-size: 12px;
    }
    
    .btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* 确保关键内容在移动端可见 */
@media (max-width: 767px) {
    .navbar-fixed-top {
        position: fixed;
        top: 0;
        z-index: 1030;
    }
}

/* 移动端性能优化 */
@media (max-width: 767px) {
    /* 减少不必要的阴影和渐变 */
    .intro-message > h1,
    .intro-message > h3,
    .banner h2 {
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    }
    
    /* 优化动画性能 */
    .btn,
    .img-responsive {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* 强制统一导航条字体和布局，防止被覆盖 */
nav.navbar .navbar-nav > li > a {
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #757575 !important;
    padding: 7px 16px;
    text-align: center;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

nav.navbar .navbar-nav > li.active > a,
nav.navbar .navbar-nav > li > a:focus,
nav.navbar .navbar-nav > li > a:hover {
    background: #f2f2f2 !important;
    color: #444 !important;
    border-radius: 4px;
}

@media (max-width: 991px) {
    .navbar-nav > li > a {
        font-size: 14px;
        padding: 6px 10px;
    }
}
@media (max-width: 767px) {
    .navbar-nav > li > a {
        font-size: 13px;
        padding: 5px 6px;
    }
}

.banner-index {
  background-image: url('https://playdoll.oss-cn-wulanchabu.aliyuncs.com/web/girl-4.webp');
}
.banner-about {
  background-image: url('https://playdoll.oss-cn-wulanchabu.aliyuncs.com/web/banner-1.webp');
}
.banner-service {
  background-image: url('https://playdoll.oss-cn-wulanchabu.aliyuncs.com/web/banner-2.webp');
}
.banner-contact {
  background-image: url('https://playdoll.oss-cn-wulanchabu.aliyuncs.com/web/banner-3.webp');
}

.navbar {
    min-height: 50px;
}
.navbar-nav > li > a {
    height: 50px;
    line-height: 50px;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.footer-links {
    text-align: left;
}
.footer-company-info {
    text-align: right;
    min-width: 220px;
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}
@media (max-width: 991px) {
    .footer-flex {
        flex-direction: column;
        align-items: center;
    }
    .footer-links, .footer-company-info {
        text-align: center;
        margin-top: 10px;
    }
}
