:host {
  --primary-blue: #2a5daa;   /* 青花蓝 */
  --gold-yellow: #e8c34d;    /* 稻穗金 */
  --porcelain-white: #f8f9fa; /* 瓷白 */
  --dark-charcoal: #333;     /* 墨黑 */
  --mountain-green: #4a6b3d; /* 山林绿 */
  --river-blue: #4a86e8;     /* 赣江蓝 */
  --red-culture: #c1272d;   /* 红色文化 */
  display: block;
}

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

body {
  font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 100%);
  color: var(--dark-charcoal);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M20,20 Q40,5 60,20 T100,20 L100,80 L0,80 L0,20 Z" fill="none" stroke="%232a5daa22" stroke-width="0.5"/></svg>');
}

/* 平台标题区域 */
.platform-header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('https://images.unsplash.com/photo-1593692909680-1b1d0a743b9d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') center/cover;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 20px;
}

.platform-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.platform-subtitle {
  font-size: 1.2rem;
  max-width: 800px;
}

/* 内容区域 */
.content-section {
  padding: 3rem 5%;
}

.section-title {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary-blue);
  position: relative;
  padding-left: 1rem;
}

.section-title h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--gold-yellow);
  border-radius: 2px;
}

.section-title .decor {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--gold-yellow), transparent);
  margin-left: 1rem;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.card {
  flex: 1;
  min-width: 300px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card-header {
  padding: 1.5rem;
  background: linear-gradient(90deg, var(--primary-blue), var(--river-blue));
  color: white;
  display: flex;
  align-items: center;
}

.card-header i {
  font-size: 1.8rem;
  margin-right: 0.8rem;
}

.card-body {
  padding: 1.5rem;
}

/* 文化资源库 */
.resource-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.jinggang-bg {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1605000797499-95a51c5269ae?ixlib=rb-4.0.3&auto=format&fit=crop&w=1951&q=80') center/cover;
  opacity: 0.2;
  z-index: 0;
}

.tools-container {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.tool-card {
  flex: 1;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  background: white;
}

.tool-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-blue), var(--river-blue));
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
}

.knowledge-graph {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.graph-card {
  flex: 1;
  min-width: 300px;
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.graph-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}

.red-culture::before {
  background: var(--red-culture);
}

.water-culture::before {
  background: var(--river-blue);
}

.non-heritage::before {
  background: var(--gold-yellow);
}

.graph-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.graph-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: white;
  margin-right: 1rem;
}

.red-icon {
  background: var(--red-culture);
}

.water-icon {
  background: var(--river-blue);
}

.heritage-icon {
  background: var(--gold-yellow);
}

.graph-body {
  height: 200px;
}

/* 智慧应用中心 */
.app-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.app-card {
  flex: 1;
  min-width: 300px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.app-preview {
  height: 200px;
  background: linear-gradient(135deg, #f0f8ff, #e6f7ff);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.app-content {
  padding: 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

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

.feature-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--river-blue));
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: white;
  margin-right: 1rem;
}

/* 共创社区 */
.community-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.university-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.uni-badge {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.uni-badge:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.uni-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 0.8rem;
}

.map-container {
  height: 300px;
  background: white;
  border-radius: 10px;
  margin-top: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.dialect-feature {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
}

.dialect-card {
  flex: 1;
  min-width: 300px;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.dialect-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.record-btn {
  background: linear-gradient(135deg, var(--primary-blue), var(--river-blue));
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.record-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(42, 93, 170, 0.3);
}

/* 页脚 */
.footer {
  background: var(--dark-charcoal);
  color: white;
  padding: 3rem 5% 2rem;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  color: var(--gold-yellow);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold-yellow);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--gold-yellow);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: #aaa;
  font-size: 0.9rem;
}

/* 动画效果 */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .platform-title {
    font-size: 2rem;
  }
  
  .platform-subtitle {
    font-size: 1rem;
  }
}