/* ========================================
   苏州清韵项目管理有限公司 - 官网样式
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --primary: #1a3a5c;
  --primary-light: #2c5f8a;
  --accent: #c9a84c;
  --accent-hover: #b8922f;
  --bg-light: #f5f6f8;
  --text: #333;
  --text-light: #666;
  --text-lighter: #999;
  --white: #fff;
  --border: #e5e5e5;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --radius: 8px;
  --transition: .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.section { padding: 90px 0; }
.bg-light { background: var(--bg-light); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-title {
  font-size: 36px; font-weight: 700; color: var(--primary);
  margin-bottom: 12px; position: relative; display: inline-block;
}
.section-title::after {
  content: ''; display: block; width: 50px; height: 3px;
  background: var(--accent); margin: 16px auto 0; border-radius: 2px;
}
.section-subtitle { font-size: 17px; color: var(--text-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 32px; border-radius: 4px;
  font-size: 16px; font-weight: 500; cursor: pointer;
  transition: var(--transition); border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 16px 0; transition: var(--transition);
  background: transparent;
}
.navbar.scrolled { background: rgba(26,58,92,.95); padding: 10px 0; box-shadow: 0 2px 20px rgba(0,0,0,.15); backdrop-filter: blur(10px); }
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 40px; height: 40px; background: var(--accent); color: var(--white);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; letter-spacing: 1px;
}
.logo-img { height: 16px; width: auto; display: block; }
.logo-text { font-size: 18px; font-weight: 600; color: var(--white); }
.nav-menu { display: flex; gap: 36px; }
.nav-link { color: rgba(255,255,255,.85); font-size: 15px; position: relative; padding: 4px 0; transition: var(--transition); }
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 26px; height: 2px; background: var(--white); transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
  height: 100vh; min-height: 650px;
  background: linear-gradient(135deg, #0f2440 0%, #1a3a5c 40%, #2c5f8a 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(201,168,76,.08) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3%, 2%); }
}
.hero-overlay { position: absolute; inset: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,.02)" d="M0,128L48,144C96,160,192,192,288,181.3C384,171,480,117,576,101.3C672,85,768,107,864,133.3C960,160,1056,192,1152,176C1248,160,1344,96,1392,64L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom; background-size: cover; z-index: 0; }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-title {
  font-size: 48px; font-weight: 700; color: var(--white);
  margin-bottom: 20px; line-height: 1.3;
  animation: fadeInUp .8s ease;
}
.hero-subtitle {
  font-size: 18px; color: rgba(255,255,255,.75); margin-bottom: 36px;
  line-height: 1.8; animation: fadeInUp .8s ease .15s both;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; animation: fadeInUp .8s ease .3s both; }
.hero-stats {
  position: absolute; bottom: 60px; left: 0; width: 100%; z-index: 1;
}
.stats-row { display: flex; justify-content: center; gap: 80px; }
.stat-item { text-align: center; color: var(--white); }
.stat-item span { font-size: 42px; font-weight: 700; color: var(--accent); }
.stat-item p { font-size: 14px; color: rgba(255,255,255,.6); margin-top: 4px; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-placeholder {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius); height: 400px; display: flex;
  align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.about-img-placeholder .img-icon { font-size: 100px; opacity: .6; }
.about-real-img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); }
.about-text h3 { font-size: 28px; color: var(--primary); margin-bottom: 20px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.highlight-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: var(--bg-light); border-radius: 6px;
  font-size: 15px; color: var(--primary);
}
.highlight-icon { font-size: 18px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 40px 30px;
  box-shadow: var(--shadow); text-align: center; transition: var(--transition);
  border: 1px solid var(--border);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.service-icon { font-size: 48px; margin-bottom: 20px; }
	.service-img { width: 100%; max-height: 200px; object-fit: contain; display: block; }
.service-card h3 { font-size: 20px; color: var(--primary); margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--text-light); line-height: 1.8; }

/* ---------- Cases ---------- */
.cases-filter { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 24px; border-radius: 30px; border: 1px solid var(--border);
  background: var(--white); color: var(--text); cursor: pointer;
  font-size: 14px; transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); cursor: pointer;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.case-card.hidden { display: none; }
.case-img-placeholder {
  height: 200px; background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex; align-items: center; justify-content: center; font-size: 60px; overflow: hidden;
}
.case-img-placeholder .case-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-info { padding: 20px; }
.case-info h4 { font-size: 18px; color: var(--primary); margin-bottom: 6px; }
.case-cat { font-size: 13px; color: var(--accent); margin-bottom: 8px; font-weight: 500; }
.case-info p { font-size: 14px; color: var(--text-light); }

/* ---------- News ---------- */
.news-list { display: flex; flex-direction: column; }
.news-item {
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.news-item-header {
  display: flex; align-items: baseline; gap: 20px;
  padding: 16px 8px; transition: var(--transition);
}
.news-item:hover .news-item-title { color: var(--accent); }
.news-item-date {
  font-size: 14px; color: var(--text-lighter);
  white-space: nowrap; min-width: 100px;
}
.news-item-title {
  font-size: 17px; color: var(--primary);
  transition: var(--transition); font-weight: 500;
}
.news-item-body {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 8px;
}
.news-item.expanded .news-item-body {
  max-height: 800px; padding: 0 8px 20px;
}
.news-item-body img {
  max-width: 100%; max-height: 300px;
  object-fit: contain; margin-bottom: 12px; border-radius: 6px;
}
.news-item-body p {
  font-size: 15px; color: var(--text-light); line-height: 1.8;
}
.news-item-arrow {
  margin-left: auto; font-size: 12px; color: var(--text-lighter);
  transition: var(--transition); flex-shrink: 0;
}
.news-item.expanded .news-item-arrow { transform: rotate(180deg); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { font-size: 28px; width: 50px; height: 50px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item h4 { font-size: 16px; color: var(--primary); margin-bottom: 4px; }
.contact-item p { font-size: 15px; color: var(--text-light); }

.contact-form { background: var(--white); padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; color: var(--primary); margin-bottom: 6px; font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 4px; font-size: 14px; font-family: inherit;
  transition: var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(44,95,138,.1); }
.btn-submit { width: 100%; padding: 14px; font-size: 16px; }

/* ---------- Footer ---------- */
.footer {
  background: #0f2035; color: rgba(255,255,255,.7); padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h3 { color: var(--white); font-size: 20px; margin-bottom: 16px; }
.footer h4 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer p { font-size: 14px; line-height: 1.8; }
.footer-links ul li, .footer-services ul li { margin-bottom: 8px; }
.footer-links ul li a, .footer-services ul li a { font-size: 14px; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-links ul li a:hover, .footer-services ul li a:hover { color: var(--accent); }
.qr-placeholder {
  width: 90px; height: 90px; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: 14px; border-radius: 4px; margin-bottom: 10px;
}
.qr-real-img { width: 45px; height: 45px; object-fit: contain; border-radius: 4px; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0; text-align: center; font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 36px; }
  .stats-row { gap: 40px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed; top: 68px; left: 0; width: 100%;
    background: rgba(26,58,92,.98); flex-direction: column; gap: 0;
    padding: 0; max-height: 0; overflow: hidden; transition: .4s ease;
  }
  .nav-menu.active { max-height: 400px; }
  .nav-menu li a { display: block; padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .services-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .news-item-date { min-width: 70px; font-size: 13px; }
  .hero-title { font-size: 30px; }
  .hero-subtitle { font-size: 15px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 28px; }
  .stats-row { gap: 24px; }
  .stat-item span { font-size: 30px; }
  .form-row { grid-template-columns: 1fr; }
}
