:root {
   --primary: #2563eb;
   --primary-dark: #1d4ed8;
   --secondary: #10b981;
   --danger: #ef4444;
   --warning: #f59e0b;
   --white: #ffffff;
   --bg-card: #ffffff;
   --bg-light: #f8fafc;
   --text-primary: #1e293b;
   --text-secondary: #64748b;
   --text-muted: #64748b;
   --border-color: #e2e8f0;
   --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
   --shadow-sm: 0 1px 3px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
   --radius: 8px;
}

.hero-linkcheck {
   padding: 4rem 0;
   text-align: center;
   border-bottom: 1px solid var(--border-color);
   box-shadow: var(--shadow);
   background: linear-gradient(135deg, #ffffff, #fcfdff);
}

.hero-linkcheck h1 {
   font-size: 2.2rem;
   margin-bottom: 1.5rem;
   color: var(--text-primary);
}

.hero-linkcheck p {
   font-size: 1.1rem;
   max-width: 800px;
   margin: 0 auto 2rem;
   color: var(--text-secondary);
}

.generator {
   background: var(--white);
   border-radius: var(--radius);
   padding: 2.5rem;
   margin: 3rem 0;
   box-shadow: var(--shadow);
}

.generator h2 {
   font-size: 2rem;
   margin-bottom: 1.5rem;
   color: var(--primary);
   text-align: center;
}

.linkcheck-form .form-group {
   margin-bottom: 1.5rem;
}

.linkcheck-form label {
   display: block;
   margin-bottom: 0.5rem;
   font-weight: 600;
   color: var(--text-primary);
}

.form-hint {
   display: block;
   margin-top: 0.35rem;
   font-size: 0.875rem;
   color: var(--text-muted);
}

.form-control {
   width: 100%;
   padding: 0.75rem 1rem;
   border: 1px solid #d1d5db;
   border-radius: var(--radius);
   font-size: 1rem;
   transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
   outline: none;
   border-color: var(--primary);
   box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.btn-group {
   display: flex;
   gap: 10px;
   margin-top: 1rem;
   flex-wrap: wrap;
}

.btn {
   display: inline-block;
   padding: 0.75rem 1.5rem;
   background: var(--primary);
   color: var(--white);
   border: none;
   border-radius: var(--radius);
   font-size: 1rem;
   font-weight: 600;
   cursor: pointer;
   transition: background-color 0.3s, transform 0.2s;
   text-decoration: none;
}

.btn:hover {
   background: var(--primary-dark);
   transform: translateY(-2px);
}

.btn:disabled {
   cursor: not-allowed;
   opacity: 0.7;
}

.btn-secondary {
   background: var(--secondary);
}

.btn-secondary:hover {
   background: #059669;
}

.btn-danger {
   background: var(--danger);
}

.btn-danger:hover {
   background: #dc2626;
}

.tips {
   background: #eff6ff;
   border-left: 4px solid var(--primary);
   padding: 1rem 1.5rem;
   margin: 2rem 0;
   border-radius: 0 var(--radius) var(--radius) 0;
}

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

.tips ul {
   padding-left: 1.5rem;
}

.tips li {
   margin-bottom: 0.5rem;
}

.linkcheck-error {
   margin-top: 1.5rem;
   padding: 1rem 1.5rem;
   background: #fef2f2;
   border: 1px solid #fecaca;
   border-radius: var(--radius);
   color: #991b1b;
}

.linkcheck-error h3 {
   margin-bottom: 0.5rem;
}

.linkcheck-loading {
   margin-top: 1.5rem;
   text-align: center;
   padding: 2rem;
}

.linkcheck-loading .spinner {
   width: 40px;
   height: 40px;
   border: 3px solid var(--border-color);
   border-top-color: var(--primary);
   border-radius: 50%;
   animation: spin 0.8s linear infinite;
   margin: 0 auto 1rem;
}

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

.linkcheck-results.feedback-container {
   display: block;
   margin-top: 2rem;
   padding-top: 1.5rem;
   border-top: 1px solid var(--border-color);
}

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

.linkcheck-summary {
   margin-bottom: 1rem;
   padding: 0.75rem 1rem;
   background: var(--bg-light);
   border-radius: var(--radius);
   font-size: 0.95rem;
}

.linkcheck-summary p {
   margin: 0;
   color: var(--text-primary);
}

.table-wrap {
   overflow-x: auto;
   border: 1px solid var(--border-color);
   border-radius: var(--radius);
}

.linkcheck-table {
   width: 100%;
   border-collapse: collapse;
   font-size: 0.9rem;
}

.linkcheck-table th,
.linkcheck-table td {
   padding: 0.75rem 1rem;
   text-align: left;
   border-bottom: 1px solid var(--border-color);
}

.linkcheck-table th {
   background: var(--bg-light);
   font-weight: 600;
   color: var(--text-primary);
}

.linkcheck-table tbody tr:last-child td {
   border-bottom: none;
}

.linkcheck-table tbody tr:hover {
   background: var(--bg-light);
}

.url-cell {
   max-width: 280px;
}

.url-cell a {
   color: var(--primary);
   text-decoration: none;
   word-break: break-all;
}

.url-cell a:hover {
   text-decoration: underline;
}

.type-badge {
   display: inline-block;
   padding: 0.25rem 0.5rem;
   border-radius: 4px;
   font-size: 0.8rem;
   font-weight: 600;
}

.type-badge.type-internal {
   background: #dbeafe;
   color: #1d4ed8;
}

.type-badge.type-external {
   background: #e0e7ff;
   color: #4338ca;
}

.status-badge {
   display: inline-block;
   padding: 0.25rem 0.5rem;
   border-radius: 4px;
   font-size: 0.85rem;
   font-weight: 600;
}

.status-badge.status-ok {
   background: #d1fae5;
   color: #065f46;
}

.status-badge.status-broken {
   background: #fee2e2;
   color: #991b1b;
}

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

.feature-card {
   background: var(--white);
   border-radius: var(--radius);
   padding: 2rem;
   box-shadow: var(--shadow);
   transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-card i {
   font-size: 2.5rem;
   color: var(--primary);
   margin-bottom: 1rem;
}

.feature-card h3 {
   font-size: 1.4rem;
   margin-bottom: 1rem;
   color: var(--text-primary);
}

.feature-card p {
   color: var(--text-secondary);
   line-height: 1.6;
   margin: 0;
}

.info-section {
   width: 100%;
   padding: 80px 0;
   margin: 0;
}

.info-section .section-title {
   font-size: 2rem;
   font-weight: 800;
   margin-bottom: 2rem;
   color: var(--text-primary);
   text-align: center;
}

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

.step-card {
   background: var(--white);
   border-radius: var(--radius);
   padding: 1.5rem;
   box-shadow: var(--shadow);
   position: relative;
}

.step-number {
   position: absolute;
   top: -15px;
   left: -15px;
   width: 40px;
   height: 40px;
   background: var(--primary);
   color: var(--white);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: bold;
   font-size: 1.2rem;
   box-shadow: var(--shadow);
}

.step-card h3 {
   margin: 0.5rem 0 1rem;
   color: var(--text-primary);
}

.step-card p {
   color: var(--text-secondary);
   line-height: 1.6;
   margin: 0;
}

@media (max-width: 640px) {
   .linkcheck-table th,
   .linkcheck-table td {
      padding: 0.5rem 0.75rem;
      font-size: 0.85rem;
   }
   .url-cell {
      max-width: 160px;
   }
}
