* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #333;
    background: #f6f6f6;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.page-wrap {
    width: 1200px;
    margin: 0 auto;
}

.topbar {
    height: 36px;
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    color: #666;
    line-height: 36px;
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
}

.topbar strong {
    color: #d60000;
    font-size: 18px;
}

.main-header {
    background: #fff;
}

.main-header__inner {
    height: 78px;
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    height: 78px;
}

.main-nav a {
    min-width: 92px;
    padding: 0 18px;
    color: #333;
    font-size: 16px;
    line-height: 78px;
    text-align: center;
}

.main-nav a.active,
.main-nav a:hover {
    background: #d60000;
    color: #fff;
}

.project-hero {
    padding: 18px 0 28px;
    background: #fff;
    border-top: 3px solid #d60000;
}

.crumb {
    margin-bottom: 16px;
    color: #999;
    font-size: 13px;
}

.project-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 22px;
}

.project-title-row h1 {
    margin: 0 0 12px;
    color: #111;
    font-size: 32px;
    line-height: 1.25;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span {
    height: 24px;
    padding: 0 8px;
    border: 1px solid #ddd;
    color: #666;
    font-size: 12px;
    line-height: 22px;
}

.tag-row .status {
    border-color: #d60000;
    background: #d60000;
    color: #fff;
}

.title-actions {
    display: flex;
    gap: 10px;
    padding-top: 6px;
}

.title-actions button,
.summary-actions button,
.consult-card button,
.section-head button,
.type-card button,
.side-card button,
.modal-submit {
    border: 1px solid #d60000;
    background: #d60000;
    color: #fff;
}

.title-actions button {
    height: 34px;
    padding: 0 16px;
}

.summary-layout {
    display: grid;
    grid-template-columns: 540px 400px 220px;
    gap: 20px;
}

.gallery-main {
    position: relative;
    width: 540px;
    height: 360px;
    overflow: hidden;
    background: #eee;
}

.gallery-main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main button {
    position: absolute;
    right: 12px;
    bottom: 12px;
    height: 30px;
    border: 0;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    padding: 0 12px;
}

.gallery-main .gallery-nav {
    top: 50%;
    bottom: auto;
    width: 34px;
    height: 54px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.38);
    color: #fff;
    font-size: 34px;
    line-height: 52px;
    transform: translateY(-50%);
}

.gallery-main .gallery-prev {
    left: 12px;
    right: auto;
}

.gallery-main .gallery-next {
    right: 12px;
}

.gallery-main .gallery-nav:hover {
    background: rgba(214, 0, 0, 0.82);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.gallery-thumb {
    height: 66px;
    border: 2px solid transparent;
    padding: 0;
    background: #eee;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: #d60000;
}

.gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-info {
    padding: 2px 0;
}

.price-line {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}

.price-line span,
.info-list dt {
    display: block;
    color: #888;
    font-size: 13px;
}

.price-line strong {
    display: block;
    margin-top: 6px;
    color: #d60000;
    font-size: 28px;
    line-height: 1.2;
}

.info-list {
    margin: 16px 0 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    min-height: 30px;
    align-items: start;
    line-height: 1.7;
}

.info-list dt,
.info-list dd {
    margin: 0;
}

.info-list dd {
    color: #333;
}

.summary-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.summary-actions button,
.consult-card button,
.section-head button,
.side-card button,
.type-card button {
    height: 38px;
    padding: 0 18px;
}

.summary-actions .outline,
.side-card button.outline {
    background: #fff;
    color: #d60000;
}

.phone-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 14px;
    background: #fff8f8;
    border: 1px solid #ffd4d4;
}

.phone-panel span {
    display: block;
    color: #888;
}

.phone-panel strong {
    color: #d60000;
    font-size: 22px;
}

.phone-panel button {
    height: 34px;
    border: 0;
    background: #333;
    color: #fff;
    padding: 0 12px;
}

.phone-tip {
    color: #999;
    font-size: 12px;
}

.consult-card {
    padding: 18px;
    background: #fafafa;
    border: 1px solid #eee;
}

.consult-card h2 {
    margin: 0;
    font-size: 20px;
}

.consult-card p {
    color: #777;
    line-height: 1.7;
}

.consult-card button {
    width: 100%;
}

.consult-card ul {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    color: #666;
}

.consult-card li {
    height: 30px;
    line-height: 30px;
    border-bottom: 1px dotted #ddd;
}

.detail-layout {
    display: grid;
    grid-template-columns: 860px 300px;
    gap: 40px;
    align-items: start;
    padding: 22px 0 50px;
}

.main-column {
    min-width: 0;
}

.section-tabs {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-bottom: 2px solid #d60000;
}

.section-tabs a {
    height: 44px;
    padding: 0 24px;
    line-height: 44px;
}

.section-tabs a:hover {
    background: #d60000;
    color: #fff;
}

.detail-section {
    margin-top: 18px;
    background: #fff;
    border: 1px solid #e2e2e2;
    padding: 24px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.section-head h2 {
    margin: 0;
    padding-left: 12px;
    border-left: 4px solid #d60000;
    font-size: 24px;
}

.section-head a {
    color: #d60000;
}

.base-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
}

.base-grid div {
    display: grid;
    grid-template-columns: 112px 1fr;
    min-height: 46px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.base-grid span {
    padding: 13px 12px;
    background: #fafafa;
    color: #777;
}

.base-grid strong {
    padding: 13px 12px;
    font-weight: 400;
}

.type-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.type-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 14px;
    padding: 14px;
    border: 1px solid #eee;
}

.type-card img {
    width: 150px;
    height: 112px;
    object-fit: cover;
    background: #eee;
}

.type-card h3 {
    margin: 0;
    font-size: 18px;
}

.type-card p {
    color: #777;
}

.type-card strong {
    display: block;
    color: #d60000;
    margin-bottom: 10px;
}

.type-card button {
    height: 30px;
    padding: 0 12px;
}

.news-list article {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.news-list article:last-child {
    border-bottom: 0;
}

.news-list h3 {
    margin: 0;
    font-size: 18px;
}

.news-list p {
    color: #666;
    line-height: 1.8;
}

.news-list time {
    color: #999;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.recommend-card {
    border: 1px solid #eee;
}

.recommend-card img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.recommend-card h3 {
    margin: 12px 12px 6px;
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommend-card p {
    margin: 0 12px 12px;
    color: #d60000;
    font-weight: 700;
}

.side-column {
    min-width: 0;
}

.side-card {
    background: #fff;
    border: 1px solid #e2e2e2;
    padding: 18px;
}

.sticky-card {
    position: sticky;
    top: 64px;
}

.side-card h2 {
    margin: 0;
    font-size: 20px;
}

.side-price {
    margin: 14px 0;
    color: #d60000;
    font-size: 24px;
    font-weight: 700;
}

.side-card p {
    color: #666;
    line-height: 1.7;
}

.side-card button {
    width: 100%;
    margin-top: 10px;
}

.side-phone {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    color: #d60000;
    font-weight: 700;
}

.footer {
    padding: 24px 0;
    background: #333;
    color: #ccc;
    text-align: center;
}

.toast {
    position: fixed;
    top: 46%;
    left: 50%;
    z-index: 3000;
    display: none;
    min-width: 220px;
    max-width: 420px;
    transform: translate(-50%, -50%);
    border-radius: 3px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    text-align: center;
}

.modal {
    display: none;
}

.modal-mask {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.46);
}

.lead-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2100;
    width: 360px;
    transform: translate(-50%, -50%);
    padding: 28px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.close-dialog {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 24px;
}

.lead-modal h2 {
    margin: 0 0 10px;
    font-size: 22px;
    text-align: center;
}

.lead-modal__text {
    margin-bottom: 16px;
    color: #777;
    line-height: 1.6;
    text-align: center;
}

.lead-input {
    width: 100%;
    height: 38px;
    border: 1px solid #ddd;
    padding: 0 10px;
    outline: none;
}

.lead-input:focus {
    border-color: #d60000;
}

.code-row {
    display: grid;
    grid-template-columns: 1fr 112px;
    gap: 10px;
    margin: 12px 0;
}

.yyz {
    border: 0;
    background: #333;
    color: #fff;
}

.modal-submit {
    width: 100%;
    height: 40px;
}

.privacy-note {
    margin: 12px 0 0;
    color: #999;
    font-size: 12px;
    text-align: center;
}
