/* 广州裕基文化发展有限公司 网站样式 */
:root {
  --primary-color: #0d3b66;
  --secondary-color: #f4d35e;
  --accent-color: #ee964b;
  --light-color: #fafafa;
  --dark-color: #333333;
  --text-color: #444444;
  --heading-color: #222222;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

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

/* 头部样式 */
header {
  background-color: var(--primary-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--box-shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
}

.logo span {
  color: var(--secondary-color);
}

/* 导航菜单 */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 0.2rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* 主要内容区域 */
main {
  min-height: calc(100vh - 200px);
  padding: 0 0 2rem 0;
}

/* 首页横幅 */
.hero {
  background: linear-gradient(rgba(13, 59, 102, 0.8), rgba(13, 59, 102, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%230d3b66"/><path d="M20,20 Q50,5 80,20 T80,80 Q50,95 20,80 T20,20" fill="none" stroke="%23f4d35e" stroke-width="0.5"/></svg>');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 4rem 0;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

/* 版块样式 */
.section {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 0.5rem auto;
}

/* 首页版块 */
.intro,
.services,
.cases,
.news {
  margin-bottom: 3rem;
}

.intro-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.intro-text {
  flex: 1;
}

.intro-text h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.intro-image {
  flex: 1;
  height: 300px;
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-weight: bold;
}

/* 服务项目网格 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-card ul {
  margin-left: 20px;
}

.page-content h2 {
  margin: 30px 0 20px 0;
}

.service-icon {
  background-color: var(--primary-color);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--secondary-color);
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* 案例展示 */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.case-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.case-image {
  height: 200px;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.case-content {
  padding: 1.5rem;
}

.case-content h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.case-content ul {
  margin-left: 20px;
}

/* 新闻列表 */
.news-list {
  list-style: none;
}

.news-item {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  transition: var(--transition);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background-color: #f9f9f9;
  transform: translateX(5px);
}

.news-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.news-meta {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* 页脚 */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: left;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 0.5rem;
}

.contact-info a {
  color: white;
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--secondary-color);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

/* 子页面样式 */
.page-header {
  background: linear-gradient(rgba(13, 59, 102, 0.8), rgba(13, 59, 102, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%230d3b66"/><circle cx="20" cy="20" r="5" fill="%23f4d35e" opacity="0.7"/><circle cx="50" cy="50" r="8" fill="%23f4d35e" opacity="0.7"/><circle cx="80" cy="80" r="6" fill="%23f4d35e" opacity="0.7"/></svg>');
  background-size: cover;
  color: white;
  padding: 3rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2.5rem;
}

.page-content {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
}

.page-content ul {
  margin-left: 20px;
}

.page-content h3 {
  margin-top: 2rem;
}

/* 联系人列表 */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-card p {
  margin-bottom: 0.5rem;
  color: #666;
}

/* 新闻列表页面 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.news-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card-image {
  height: 200px;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-weight: bold;
}

.news-card-content {
  padding: 1.5rem;
}

.news-card-content h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.news-card-content .meta {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* 产品页面 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  height: 200px;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.product-content {
  padding: 1.5rem;
}

.product-content h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* 常见问题 */
.faq-item {
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faq-question {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 1.5rem;
  cursor: pointer;
  position: relative;
  font-weight: 500;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

.faq-question.active::after {
  content: '-';
}

.faq-answer {
  background-color: white;
  padding: 1.5rem;
  display: none;
}

.faq-answer.show {
  display: block;
}

/* 知识库 */
.knowledge-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.knowledge-category {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.knowledge-category:hover {
  transform: translateY(-5px);
  background-color: var(--primary-color);
  color: white;
}

.knowledge-category:hover h3 {
  color: var(--secondary-color);
}

.knowledge-category h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.knowledge-articles {
  list-style: none;
}

.knowledge-articles li {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.knowledge-articles li:last-child {
  border-bottom: none;
}

.knowledge-articles a {
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
}

.knowledge-articles a:hover {
  color: var(--accent-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    margin: 0.3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .intro-content {
    flex-direction: column;
  }

  .section {
    padding: 1.5rem;
  }
}