/* Capital One Brand Inspired Design */
:root {
    /* Capital One Brand Colors */
    --primary-blue: #0276b1;
    --hover-blue: #026597;
    --active-blue: #014e74;
    --accent-red: #e31c2e;
    --light-gray: #f4f4f4;
    --medium-gray: #e8e8e8;
    --dark-gray: #3d3d3d;
    --text-dark: #141414;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--hover-blue) 100%);
    box-shadow: 0 4px 20px rgba(2, 118, 177, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-red);
}

.site-header-inner-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header-row {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header-main-section-left {
    flex: 1;
}

.site-header-main-section-right {
    flex: 0 0 auto;
    margin-left: 40px;
}

.site-branding .site-title {
    color: var(--white) !important;
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    padding: 25px 0 30px 0;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.site-branding a {
    color: var(--white) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-branding a:hover {
    transform: translateY(-2px);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

/* Navigation Styles */
.main-navigation {
    background: transparent;
    margin: 0;
    padding: 0;
}

.primary-menu-container {
    display: flex;
    justify-content: flex-end;
    padding: 0;
    overflow: hidden;
    min-width: 0;
    margin-right: 20px;
}

#primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 8px;
    gap: 2px;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#primary-menu li {
    margin: 0;
}

#primary-menu a {
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: block;
    font-size: 13px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

#primary-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#primary-menu a:hover::before {
    left: 100%;
}

#primary-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#primary-menu .current-menu-item a {
    background-color: var(--accent-red);
    color: var(--white) !important;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(227, 28, 46, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Content Styles */
.entry-content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
}

.entry-content {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 50px;
    margin-bottom: 40px;
    position: relative;
    border-top: 5px solid var(--primary-blue);
}

.entry-content::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background: var(--accent-red);
    border-radius: 0 0 10px 10px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-red));
    border-radius: 2px;
}

h2 {
    font-size: 2.2rem;
    color: var(--hover-blue);
    border-left: 6px solid var(--primary-blue);
    padding-left: 20px;
    margin: 50px 0 25px 0;
    position: relative;
    background: linear-gradient(90deg, rgba(2, 118, 177, 0.05), transparent);
    padding: 15px 20px;
    border-radius: 0 10px 10px 0;
}

h3 {
    font-size: 1.6rem;
    color: var(--active-blue);
    position: relative;
    padding-left: 25px;
}

h3::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-size: 0.8em;
}

p {
    margin-bottom: 25px;
    font-size: 17px;
    line-height: 1.8;
    text-align: justify;
    color: var(--dark-gray);
}

/* 首段特殊样式 */
.entry-content > p:first-of-type {
    font-size: 19px;
    font-weight: 500;
    color: var(--text-dark);
    background: linear-gradient(135deg, rgba(2, 118, 177, 0.05), rgba(227, 28, 46, 0.05));
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
    margin-bottom: 35px;
}

/* Image Styles */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 15px var(--shadow);
}

.wp-block-image,
figure {
    margin: 30px 0;
    text-align: center;
}

figcaption {
    font-style: italic;
    color: var(--dark-gray);
    margin-top: 10px;
    font-size: 14px;
}

/* List Styles */
ul, ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Link Styles */
a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-blue);
    text-decoration: underline;
}

/* Button Styles */
.wp-block-button__link,
button,
input[type="submit"] {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--hover-blue) 100%);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow);
    background: linear-gradient(135deg, var(--hover-blue) 0%, var(--active-blue) 100%);
}

/* Card Styles for Content Blocks */
.wp-block-group,
.entry-content > div {
    background: linear-gradient(135deg, var(--light-gray), var(--white));
    border-radius: 15px;
    padding: 35px;
    margin: 40px 0;
    border: 1px solid var(--medium-gray);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.wp-block-group::before,
.entry-content > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-red));
    border-radius: 15px 15px 0 0;
}

.wp-block-group:hover,
.entry-content > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--dark-gray) 100%);
    color: var(--light-gray);
    margin-top: 80px;
    position: relative;
    border-top: 4px solid var(--primary-blue);
    font-size: 14px;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-red), var(--primary-blue));
}

/* Top Footer Section */
.site-top-footer-wrap {
    padding: 50px 0 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-top-footer-inner-wrap {
    display: grid;
    grid-template-columns: 1fr 200px 2fr;
    gap: 40px;
    align-items: start;
}

.site-footer h2 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 8px;
    display: inline-block;
}

.site-footer p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--light-gray);
}

.site-footer strong {
    color: var(--white);
    font-weight: 600;
}

/* Logo Section */
.site-footer-top-section-2 {
    text-align: center;
}

.site-footer-top-section-2 img {
    max-width: 150px;
    height: auto;
    filter: brightness(1.2);
}

/* Middle Footer - Navigation */
.site-middle-footer-wrap {
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#footer-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer-menu li {
    margin: 0;
}

#footer-menu a {
    color: var(--light-gray);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

#footer-menu a:hover {
    color: var(--white);
    background: rgba(2, 118, 177, 0.2);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Bottom Footer */
.site-bottom-footer-wrap {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.5);
}

.site-bottom-footer-inner-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-html {
    color: var(--light-gray);
    font-size: 13px;
}

.footer-html a {
    color: var(--primary-blue);
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-html a:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

/* Social Links */
.footer-social-inner-wrap {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-social-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.footer-social-item:hover {
    background: var(--primary-blue);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(2, 118, 177, 0.4);
}

.footer-social-item svg {
    width: 20px;
    height: 20px;
}

.footer-social-item img {
    width: 20px;
    height: 20px;
    border-radius: 0;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    #primary-menu {
        gap: 20px;
    }

    #primary-menu a {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    #primary-menu {
        gap: 1px;
        padding: 6px;
    }

    #primary-menu a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .site-branding .site-title {
        font-size: 24px;
    }

    .site-header-main-section-right {
        margin-left: 20px;
    }

    /* Footer Responsive - Tablet */
    .site-top-footer-inner-wrap {
        grid-template-columns: 1fr 180px 1.5fr;
        gap: 30px;
    }

    #footer-menu {
        gap: 20px;
    }

    #footer-menu a {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    #primary-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1px;
        padding: 4px;
    }

    #primary-menu a {
        padding: 6px 10px;
        font-size: 11px;
    }

    .site-header-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .site-header-main-section-left,
    .site-header-main-section-right {
        margin: 0;
    }

    .primary-menu-container {
        justify-content: center;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    #primary-menu {
        flex-direction: column;
        gap: 2px;
        padding: 8px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    #primary-menu a {
        text-align: center;
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
    }

    .main-navigation {
        margin: 0;
        padding: 0;
    }

    .site-branding .site-title {
        font-size: 22px;
        padding: 20px 0 15px 0;
        text-align: center;
    }

    .primary-menu-container {
        padding: 0;
        justify-content: center;
        margin: 0;
    }

    .site-header-row {
        padding: 20px 0;
    }

    .entry-content {
        padding: 25px;
        margin: 20px 10px;
    }

    h1 {
        font-size: 2rem;
    }

    h1::after {
        width: 60px;
    }

    h2 {
        font-size: 1.5rem;
        padding: 10px 15px;
    }

    h3 {
        font-size: 1.3rem;
    }

    .wp-block-group,
    .entry-content > div {
        padding: 20px;
        margin: 20px 0;
    }

    .step-item {
        padding: 20px 20px 20px 70px;
    }

    .step-item::before {
        width: 35px;
        height: 35px;
        font-size: 16px;
        left: 15px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-card {
        padding: 20px;
    }

    .entry-content > p:first-of-type {
        font-size: 17px;
        padding: 15px;
    }

    /* Footer Responsive */
    .site-top-footer-inner-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .site-footer-top-section-2 {
        order: -1;
    }

    #footer-menu {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    #footer-menu a {
        display: block;
        text-align: center;
        padding: 12px 20px;
    }

    .site-bottom-footer-inner-wrap {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-social-inner-wrap {
        justify-content: center;
    }
}

/* Special Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-blue), var(--hover-blue));
    color: var(--white);
    padding: 35px;
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(2, 118, 177, 0.4);
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.highlight-box h3,
.highlight-box h4 {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.highlight-box p {
    position: relative;
    z-index: 1;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px var(--shadow);
}

th {
    background: var(--primary-blue);
    color: var(--white);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--medium-gray);
}

tr:hover {
    background: var(--light-gray);
}

/* Content Organization Styles */
.step-container {
    counter-reset: step-counter;
    margin: 40px 0;
}

.step-item {
    counter-increment: step-counter;
    position: relative;
    padding: 25px 25px 25px 80px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, rgba(2, 118, 177, 0.05), rgba(255, 255, 255, 0.8));
    border-radius: 15px;
    border-left: 4px solid var(--primary-blue);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.step-item::before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--hover-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.info-card h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Form Styles */
input, textarea, select {
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    width: 100%;
    margin-bottom: 15px;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 118, 177, 0.1);
}