* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1640px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  position: relative;
  margin-bottom: 20px;
  text-align: center;
}

header h1 {
  font-size: 32px;
  margin-bottom: 5px;
}

header p {
  font-size: 16px;
  line-height: 1.6;
}

.main-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 25px;
	margin-bottom: 30px;
}

.card {
	background: white;
	border-radius: 10px;
	padding: 25px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card h2 {
	color: #333;
	margin-bottom: 20px;
	font-size: 1.5em;
	border-bottom: 2px solid #f1f2f3;
	padding-bottom: 10px;
}

.info-grid {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 15px;
	margin-bottom: 25px;
}

.info-label {
	font-weight: 600;
	color: #666;
	text-align: right;
	padding-right: 15px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.info-value {
	background: #f8f9fa;
	padding: 8px 12px;
	border-radius: 5px;
	word-break: break-all;
}

.info-value.dns-warning {
	color: #ff7875;
	font-weight: 700;
	background: #fff5f5;
}

.dns-input-card {
	grid-column: span 2;
}

.dns-input-group {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background-color: #f8f9fa;
	padding: 15px;
	border-radius: 8px;
	border-left: 4px solid #667eea;
}

.dns-input-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.dns-input-header label {
	font-weight: 600;
	color: #666;
	display: flex;
	align-items: center;
	gap: 5px;
}

.dns-input-hint {
	font-size: 12px;
	color: #667eea;
	font-style: italic;
}

.dns-input-wrapper {
	display: flex;
	gap: 10px;
	align-items: center;
}

.dns-input-field {
	flex: 1;
	padding: 12px 16px;
	border: 2px solid #ddd;
	border-radius: 8px;
	font-size: 16px;
	font-family: monospace;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dns-input-field:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
	outline: none;
}

.dns-check-btn {
	padding: 12px 20px;
	background-color: #667eea;
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.dns-check-btn:hover {
	background-color: #5a67d8;
}

.dns-check-btn:active {
	transform: translateY(1px);
}

.hint-text {
	font-size: 12px;
	color: #999;
	line-height: 1.4;
}

.hint-text.important {
	color: #e67e22;
	font-weight: normal;
	padding: 8px;
	background-color: #fff3cd;
	border-radius: 4px;
	border-left: 3px solid #ffc107;
}

.hint-text.important strong {
	color: #d35400;
}

.result-section {
	background: #e8f5e9;
	padding: 15px;
	border-radius: 8px;
	border-left: 4px solid #4caf50;
	margin-top: 20px;
}

.result-section.error {
	background: #ffebee;
	border-left-color: #f44336;
}

.result-section.warning {
	background: #fff3e0;
	border-left-color: #ff9800;
}

.result-details {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
	margin-top: 20px;
	border: 1px solid #e0e0e0;
}

.result-details h4 {
	color: #667eea;
	margin-bottom: 15px;
	font-size: 1.2em;
}

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

.detail-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	background: white;
	border-radius: 5px;
	border: 1px solid #e9ecef;
}

.detail-label {
	font-weight: 600;
	color: #666;
}

.detail-value {
	color: #333;
	font-weight: 500;
}

.dns-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

.dns-table th,
.dns-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
}

.dns-table th {
	background-color: #f8f9fa;
	font-weight: 600;
	color: #666;
}

.dns-table tr:hover {
	background-color: #f8f9fa;
}

.dns-table tr td:first-child {
	font-weight: 500;
}

.refresh-btn {
	background: #667eea;
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 20px auto;
}

.refresh-btn:hover {
	background: #5a67d8;
}

.refresh-btn:active {
	transform: scale(0.98);
}

.refresh-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

footer {
	background: white;
	padding: 25px 0;
	text-align: center;
	border-radius: 10px;
}

.footer-content {
	max-width: 95%;
	margin: 0 auto;
}

.footer-content h3 {
	color: #333;
	margin-bottom: 20px;
	font-size: 1.5em;
}

.footer-content p {
	margin-bottom: 10px;
	color: #666;
}

.footer-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 30px;
}

.feature-item {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
	transition: transform 0.3s ease;
}

.feature-item:hover {
	transform: translateY(-3px);
}

.feature-item h4 {
	color: #667eea;
	margin-bottom: 10px;
	font-size: 1.2em;
}

.feature-item p {
	font-size: 0.95em;
	color: #666;
}

.notice {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: #333;
	color: white;
	padding: 15px 25px;
	border-radius: 25px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 1000;
	max-width: 80%;
	text-align: center;
}

.notice.show {
	opacity: 1;
}

.loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: white;
	animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.dns-list {
	grid-column: span 2;
}