/* 基本样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

/* 导航栏样式 */
header {
  background: #2c3e50;
  color: #fff;
  padding: 1rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #3498db;
}

/* 首页大图样式 */
.hero {
  background: #3498db;
  color: #fff;
  padding: 2rem;
  text-align: center;
}

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

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta {
  display: inline-block;
  background: #fff;
  color: #3498db;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.cta:hover {
  background: #f4f4f4;
}

/* 功能卡片样式 */
.features {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

/* 页脚样式 */
footer {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

/* 钱包页面样式 */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.wallet-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.wallet-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.intro-text {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #555;
}

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

.wallet-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.wallet-card h2 {
  color: #3498db;
  margin-bottom: 1rem;
}

.wallet-features {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.wallet-features li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.wallet-features li:before {
  content: "✓";
  color: #3498db;
  position: absolute;
  left: 0;
}

.wallet-button {
  display: inline-block;
  background: #3498db;
  color: #fff;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  font-weight: bold;
}

.wallet-button:hover {
  background: #2980b9;
}

.wallet-security {
  margin-bottom: 3rem;
}

.wallet-security h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.security-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.security-item h3 {
  color: #3498db;
  margin-bottom: 0.5rem;
}

.wallet-demo {
  margin-bottom: 3rem;
}

.wallet-demo h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.demo-container {
  max-width: 600px;
  margin: 0 auto;
}

.demo-wallet {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.wallet-header {
  background: #3498db;
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wallet-header h3 {
  margin: 0;
}

.wallet-balance {
  font-weight: bold;
}

.wallet-body {
  padding: 1.5rem;
}

.wallet-assets {
  margin-bottom: 1.5rem;
}

.asset-item {
  display: flex;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
}

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

.asset-item img {
  width: 40px;
  height: 40px;
  margin-right: 1rem;
}

.asset-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.asset-name {
  font-weight: bold;
}

.asset-balance {
  color: #555;
}

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

.action-button {
  flex: 1;
  margin: 0 0.5rem;
  padding: 0.8rem;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.action-button:hover {
  background: #2980b9;
}

.action-button:first-child {
  margin-left: 0;
}

.action-button:last-child {
  margin-right: 0;
}

.demo-note {
  text-align: center;
  margin-top: 1rem;
  color: #777;
  font-style: italic;
}

/* 模态框样式 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #777;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #333;
}

.modal-content h2 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.modal-content p {
  margin-bottom: 1.5rem;
  color: #555;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #555;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.modal-submit {
  background: #3498db;
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.modal-submit:hover {
  background: #2980b9;
}

/* 钱包选项模态框 */
.wallet-options-content {
  max-width: 400px;
}

.wallet-options-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.wallet-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.wallet-option:hover {
  background: #f9f9f9;
  transform: translateX(5px);
}

.wallet-option-icon {
  width: 40px;
  height: 40px;
  background: #3498db;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  margin-right: 1rem;
}

.wallet-option-name {
  font-weight: bold;
  color: #333;
}

/* 通知样式 */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff;
  border-left: 4px solid #3498db;
  border-radius: 4px;
  padding: 1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.notification h3 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.notification p {
  color: #555;
}

/* 功能详情页样式 */
.features-detail {
  padding: 2rem 0;
}

.features-detail h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.crypto-section,
.payment-limits {
  margin-bottom: 3rem;
}

.crypto-section h2,
.payment-limits h2 {
  margin-bottom: 1.5rem;
  color: #3498db;
}

.crypto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.crypto-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.crypto-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

.crypto-card h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.crypto-card ul,
.payment-limits ul {
  list-style: none;
}

.crypto-card ul li,
.payment-limits ul li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.crypto-card ul li:before,
.payment-limits ul li:before {
  content: "✓";
  color: #3498db;
  position: absolute;
  left: 0;
}

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

  nav ul {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    margin: 0.5rem;
  }

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

  .wallet-types,
  .security-features {
    grid-template-columns: 1fr;
  }

  .wallet-actions {
    flex-direction: column;
  }

  .action-button {
    margin: 0.5rem 0;
  }

  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }
}
