/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    min-height: calc(100vh - 40px);
}

.admin-container {
    max-width: 500px;
    margin: 100px auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

h2 {
    color: #34495e;
    margin-bottom: 20px;
}

h3 {
    color: #2980b9;
    margin-bottom: 10px;
}

/* 导航栏 */
header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

header nav li {
    margin: 0 10px;
}

header nav a {
    text-decoration: none;
    color: #3498db;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

header nav a:hover {
    background-color: #ecf0f1;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-size: 16px;
    text-align: center;
}

  /* 2. 按钮美化样式 */
  .btn-primary {
    /* 基础外观 */
    background-color: #3498db; /* 你的原色 */
    color: white;
    
    /* 尺寸与排版 */
    padding: 12px 30px;        /* 内边距，让按钮不那么紧凑 */
    font-size: 16px;           /* 字体大小 */
    font-weight: 500;          /* 字重稍粗，更显眼 */
    letter-spacing: 0.5px;     /* 字间距，提升精致感 */
    text-align: center;
    text-decoration: none;     /* 如果是 <a> 标签，去掉下划线 */
    border: none;              /* 去掉默认边框 */
    
    /* 形状与质感 */
    border-radius: 8px;        /* 小圆角，现代感 */
    cursor: pointer;           /* 鼠标变成手型 */
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2); /* 同色系柔和阴影 */
    
    /* 动画过渡 */
    transition: all 0.3s ease; /* 所有变化都在 0.3 秒内平滑完成 */
    outline: none;             /* 去掉点击时的默认蓝框 */
  }

  /* 3. 鼠标悬停 (Hover) 效果 */
  .btn-primary:hover {
    background-color: #2980b9; /* 颜色变深一点 */
    transform: translateY(-2px); /* 微微上浮 */
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3); /* 阴影加深 */
  }

  /* 4. 鼠标按下 (Active) 效果 */
  .btn-primary:active {
    transform: translateY(0);  /* 恢复原位 */
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2); /* 阴影变浅 */
  }

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

  /* 2. 按钮美化样式 */
  .btn-danger {
    /* 基础外观 */
    background-color: #e74c3c; /* 你的原色 */
    color: white;
    
    /* 尺寸与排版 */
    padding: 12px 30px;        /* 内边距，让按钮不那么紧凑 */
    font-size: 16px;           /* 字体大小 */
    font-weight: 500;          /* 字重稍粗，更显眼 */
    letter-spacing: 0.5px;     /* 字间距，提升精致感 */
    text-align: center;
    text-decoration: none;     /* 如果是 <a> 标签，去掉下划线 */
    border: none;              /* 去掉默认边框 */
    
    /* 形状与质感 */
    border-radius: 8px;        /* 小圆角，现代感 */
    cursor: pointer;           /* 鼠标变成手型 */
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2); /* 同色系柔和阴影 */
    
    /* 动画过渡 */
    transition: all 0.3s ease; /* 所有变化都在 0.3 秒内平滑完成 */
    outline: none;             /* 去掉点击时的默认蓝框 */
  }

  /* 3. 鼠标悬停 (Hover) 效果 */
  .btn-danger:hover {
    background-color: #A00000; /* 颜色变深一点 */
    transform: translateY(-2px); /* 微微上浮 */
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3); /* 阴影加深 */
  }

  /* 4. 鼠标按下 (Active) 效果 */
  .btn-danger:active {
    transform: translateY(0);  /* 恢复原位 */
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2); /* 阴影变浅 */
  }

.button-group {
    text-align: center;
    margin-top: 20px;
}

.button-group .btn {
    margin: 0 10px;
}

/* 提示消息 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* 面板网格 */
.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.panel {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.panel h3 {
    margin-top: 0;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:hover {
    background-color: #f5f5f5;
}

/* 域名列表样式 */
.domain-status-deleted {
    color: #999;
    font-style: italic;
}

.domain-actions button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination a {
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 4px;
}

.pagination a.active {
    background-color: #3498db;
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    header nav li {
        margin: 5px 0;
    }
    
    .panel-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px;
    }
}






  /* 核心样式 */
  .search-input {
    /* 基础布局 */
    width: 300px;
    padding: 12px 20px;
    font-size: 16px;
    color: #333;
    
    /* 外观美化 */
    border: 1px solid #e0e0e0;       /* 极淡的边框 */
    border-radius: 50px;             /* 大圆角，更柔和 */
    background-color: #f9f9f9;       /* 浅灰背景，比纯白更护眼 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* 轻微阴影 */
    
    /* 过渡动画 */
    transition: all 0.3s ease;
    outline: none;                   /* 移除默认聚焦蓝框 */
  }

  /* 占位符颜色美化 */
  .search-input::placeholder {
    color: #aaa;
    font-weight: 400;
  }

  /* 聚焦时的状态 (关键！) */
  .search-input:focus {
    background-color: #ffffff;       /* 聚焦变白 */
    border-color: #4a90e2;           /* 品牌色边框 (可换成你喜欢的颜色) */
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2); /* 聚焦时阴影加深并带颜色 */
    transform: translateY(-1px);     /* 微微上浮 */
  }