﻿/* ============================================================
   二手钢琴严选 - 电脑端样式表 (PC)
   ============================================================ */

/* ---------- CSS 变量 ---------- */
:root {
    --color-primary: #1a1a2e;
    --color-primary-light: #2d2d44;
    --color-accent: #58BD38;
    --color-accent-hover: #b8944f;
    --color-bg: #f8f8f8;
    --color-bg-alt: #f0f0f2;
    --color-bg-dark: #1a1a2e;
    --color-text: #2c2c2c;
    --color-text-light: #666;
    --color-text-muted: #999;
    --color-white: #ffffff;
    --color-border: #cccccc;
    --color-success: #27ae60;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --max-width: 1400px;
    --font-stack: "Open Sans", "system-ui", "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-stack);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.0rem;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 1rem;
    padding: 12px 28px;
}

.btn-accent:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 6px;
}

.btn-sm:hover {
    background: var(--color-primary-light);
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
}

/* ---------- 顶部广告位 ---------- */
.top-banner {
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    color: var(--color-white);
    padding: 10px 0;
    font-size: 0.9rem;
    position: relative;
}

.top-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.top-banner a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.banner-close {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
}

.banner-close:hover {
    opacity: 1;
}

/* ---------- 主导航 ---------- */
.site-header {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo-icon {
    background: url(https://www.gangqinshu.com/service/images/logo_3.png) no-repeat right center;
	background-size: 32px 32px;
	width: 40px;
	height: 40px;
	font-size: 1.6rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 1.0rem;
    color: var(--color-text);
    transition: all 0.2s ease;
}

.main-nav a:hover {
    background: var(--color-bg);
    color: var(--color-accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-toggle {
    display: none;
}

/* ---------- 轮播幻灯 ---------- */
.hero-carousel {
    margin: 24px 32px 0;
}

.carousel-container {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 580px;
    background: var(--color-primary);
    touch-action: pan-y pinch-zoom; /* 允许垂直滑动，水平留给轮播 */
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    padding: 60px 80px 60px 80px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.carousel-slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 540px;
    color: var(--color-white);
}

.slide-tag {
    display: inline-block;
    background: none;
    color: #ffffff;
    padding: 8px 20px;
	border: 1px #ffffff solid;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.slide-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.slide-content p {
    font-size: 1.00rem;
    opacity: 0.85;
    margin-bottom: 10px;
}

.slide-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s ease;
}

.dot.active {
    background: var(--color-accent);
	width: 20px;
    height: 10px;
}

/* ---------- 版块标题 ---------- */
.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
	line-height: 2.0;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1rem;
}

.section-header .view-all {
    display: inline-block;
    margin-top: 10px;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1.0rem;
}

.section-header .view-all:hover {
    text-decoration: underline;
}

/* ---------- 分类/标签 ---------- */
.category-section {
    padding: 48px 0px 16px 0px;
}

.category-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	width: 80%;
	padding: 0px 0% 0px 20%;
	text-align: center;
}

.tag {
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    transition: all 0.2s ease;
}

.tag:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.tag.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* ---------- 便捷入口 ---------- */
.quick-entry {
    padding: 36px 0;
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.entry-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.entry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.entry-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 12px;
}

.entry-card h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--color-primary);
}

.entry-card p {
    font-size: 1.0rem;
    color: var(--color-text-muted);
}

/* ---------- 产品版块 ---------- */
.product-section {
    padding: 80px 0px 100px 0px;
}

.product-section.section-alt {
    background: var(--color-bg-alt);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: var(--color-white);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.card-badge.badge-new {
    background: var(--color-accent);
}

.card-badge.badge-rent {
    background: #3498db;
}

.card-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.card-body {
    padding: 18px;
}

.card-brand {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin-bottom: 14px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
}

.card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #c0392b;
}

.card-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

/* ---------- 可出租型号展示区 ---------- */
.rental-section {
    padding: 80px 0px 100px 0px;
}

.rental-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: var(--color-white);
    margin-bottom: 18px;
}

.rental-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.0rem;
}

.rental-table thead {
    background: var(--color-primary);
    color: var(--color-white);
}

.rental-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.rental-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border);
}

.rental-table tbody tr:hover {
    background: var(--color-bg);
}

.price-cell {
    color: #c0392b;
    font-weight: 600;
}

.tag-yes {
    color: var(--color-success);
    font-weight: 500;
    font-size: 0.85rem;
}

.tag-no {
    color: var(--color-text-muted);
}

.rental-note {
    font-size: 1.0rem;
    color: var(--color-text-light);
    background: var(--color-bg-alt);
    padding: 16px 30px;
    border-radius: var(--radius-sm);
}

/* ---------- 我们的优势 ---------- */
.advantage-section {
    padding: 80px 0px 100px 0px;
}

.advantage-section.section-alt {
    background: var(--color-bg-alt);
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.advantage-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 40px 40px 50px 40px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.advantage-icon {
	font-size: 2.5rem;
	margin-bottom: 20px;
	display: flex;
	text-align: center;
	flex-direction: column;
    align-items: center;
}

.advantage-icon img {
	width: 60px;
	height: auto;
}

.advantage-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.advantage-card p {
    font-size: 1.0rem;
    color: var(--color-text-light);
    line-height: 1.9;
}

.advantage-highlight {
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
    color: var(--color-white);
}

.highlight-content h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.highlight-content p {
    font-size: 15px;
    opacity: 0.88;
    margin-bottom: 10px;
    line-height: 32px;
}

/* ---------- 保养文章 ---------- */
.articles-section {
    padding: 80px 0px 100px 0px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.article-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-body {
    padding: 20px;
}

.article-category {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-primary);
    line-height: 36px;
}

.article-body p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 32px;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
}

.article-meta a {
    color: var(--color-accent);
    font-weight: 600;
}

/* ---------- 选购知识列表 ---------- */
.knowledge-section {
    padding: 60px 0px 80px 0px;
    background: var(--color-white);
}

.knowledge-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
}

.knowledge-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.knowledge-item:last-child {
    border-bottom: none;
}

.knowledge-item h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    line-height: 1.4;
}

.knowledge-item h3 a {
    color: var(--color-primary);
    transition: color 0.2s;
    text-decoration: none;
}

.knowledge-item h3 a:hover {
    color: var(--color-accent);
}

.knowledge-item p {
    font-size: 1.0rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
    line-height: 1.6;
}

.knowledge-item .meta {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

/* ---------- 服务地区 ---------- */
.cities-section {
    padding: 80px 0px 100px 0px;
}

.cities-section.section-alt {
    background: var(--color-bg-alt);
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.city-card {
    background: var(--color-white);
    border-radius: var(--radius-sm);
    padding: 18px 14px;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.city-card:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.city-name {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.city-count {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.city-card:hover .city-count {
    color: rgba(255, 255, 255, 0.7);
}

.cities-more {
    font-size: 1.0rem;
    color: var(--color-text-light);
    line-height: 2.0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cities-tip {
    margin-top: 12px;
    color: var(--color-text-muted);

    font-size: 0.85rem;
}

/* ---------- 选琴意向表单 ---------- */
.form-section {
    padding: 80px 0px 100px 0px;
}

.form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 60px 48px 70px 48px;
    box-shadow: var(--shadow-md);
}

.form-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.form-info p {
    font-size: 1.0rem;
    color: var(--color-text-light);
    margin-bottom: 50px;
    line-height: 1.9;
}

.form-info ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-info ul li {
    font-size: 1.0rem;
    color: var(--color-text);
}

.form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 1.0rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1.0rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.15);
}

/* ---------- 页脚 ---------- */
.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 80px 0px 100px 0px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand {
	padding: 0px 100px 0px 0px;
    
}

.footer-brand .logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
    display: block;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.9;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.0rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #CCCCCC;
}




/********城市 2***********/
.citylist-section {
    padding: 60px 0px 80px 0px;
    background: var(--color-white);
}


.city {
	padding: 0px 0px 30px 0px;
	width: 100%;
	float: left;
	margin: 3% 0% 0% 0%;
	text-align: center;
	font-size: 16px;
	line-height: 36px;
	color: #666666;
	clear: both;
}
.city_box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 1300px;
    margin: 0 auto;
}


.city_box h2 {
	font-size: 18px;
	font-weight: bold;
	color: #0F250C;
	line-height: 55px;
	text-align: left;
	background-color: #F5F5F5;
	border-radius: 5px; /* css 3标准 */
    -moz-border-radius: 5px; /* mozilla */
    -webkit-border-radius: 5px;
	padding: 0px 2%;
	margin: 0px 0px 10px 0px;
}
.city_box p {
	font-size: 16px;
	font-weight: normal;
	color: #999999;
	line-height: 36px;
	text-align: left;
	padding: 0px 2%;
}
.city_box a {
	font-size: 16px;
	font-weight: normal;
	color: #666666;
	border-radius: 10px; /* css 3标准 */

    -moz-border-radius: 10px; /* mozilla */
    -webkit-border-radius: 10px;
	padding: 3px 0px;
	width: auto;
	float: none;
	line-height: 32px;
	margin: 0px 20px 0px 0px;
	height:32px;
}
.city_box a.hover {
	color: #000000;
}
.city_box a:hover {
	color: #58BD38;
}
